mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't connect to invalid IP:port combinations.
This commit is contained in:
@@ -284,7 +284,7 @@ void ConnectionPool::relayMessageTo(const std::set<uint64>& 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;
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user