Browse Source

remove an unneded .c_str() in OpenNetworkConnection()

0.10
Philip Kaufmann 11 years ago
parent
commit
f469f79ff8
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1478,7 +1478,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
if (!pszDest) { if (!pszDest) {
if (IsLocal(addrConnect) || if (IsLocal(addrConnect) ||
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) || FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
FindNode(addrConnect.ToStringIPPort().c_str())) FindNode(addrConnect.ToStringIPPort()))
return false; return false;
} else if (FindNode(pszDest)) } else if (FindNode(pszDest))
return false; return false;

Loading…
Cancel
Save