Only validate peers if we haven't defined $discovery.