Browse Source

SOCKS5 connecting and connected messages with -debug=net.

They were too noisy and not necessary for normal operation.
0.13
Warren Togami 9 years ago
parent
commit
0d9af79e50
  1. 4
      src/netbase.cpp

4
src/netbase.cpp

@ -294,7 +294,7 @@ struct ProxyCredentials
/** Connect using SOCKS5 (as described in RFC1928) */ /** Connect using SOCKS5 (as described in RFC1928) */
static bool Socks5(const std::string& strDest, int port, const ProxyCredentials *auth, SOCKET& hSocket) static bool Socks5(const std::string& strDest, int port, const ProxyCredentials *auth, SOCKET& hSocket)
{ {
LogPrintf("SOCKS5 connecting %s\n", strDest); LogPrint("net", "SOCKS5 connecting %s\n", strDest);
if (strDest.size() > 255) { if (strDest.size() > 255) {
CloseSocket(hSocket); CloseSocket(hSocket);
return error("Hostname too long"); return error("Hostname too long");
@ -425,7 +425,7 @@ static bool Socks5(const std::string& strDest, int port, const ProxyCredentials
CloseSocket(hSocket); CloseSocket(hSocket);
return error("Error reading from proxy"); return error("Error reading from proxy");
} }
LogPrintf("SOCKS5 connected %s\n", strDest); LogPrint("net", "SOCKS5 connected %s\n", strDest);
return true; return true;
} }

Loading…
Cancel
Save