diff --git a/src/cpp/ripple/ConnectionPool.cpp b/src/cpp/ripple/ConnectionPool.cpp index fa916d4cb..097a39362 100644 --- a/src/cpp/ripple/ConnectionPool.cpp +++ b/src/cpp/ripple/ConnectionPool.cpp @@ -284,7 +284,7 @@ void ConnectionPool::relayMessageTo(const std::set& fromPeers, const Pac // Requires sane IP and port. void ConnectionPool::connectTo(const std::string& strIp, int iPort) { - if (theConfig.RUN_STANDALONE) + if (theConfig.RUN_STANDALONE || (iPort < 0)) return; {