mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix peer tracking and scaning model.
This commit is contained in:
@@ -728,8 +728,8 @@ Json::Value RPCServer::doConnect(Json::Value& params)
|
||||
iPort = boost::lexical_cast<int>(strPort);
|
||||
}
|
||||
|
||||
if (!theApp->getConnectionPool().connectTo(strIp, iPort))
|
||||
return "connected";
|
||||
// XXX Validate legal IP and port
|
||||
theApp->getConnectionPool().connectTo(strIp, iPort);
|
||||
|
||||
return "connecting";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user