mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-11 22:43:06 +02:00
net: cleanup SOCKS5 auth logging
Do not log SOCKS5 auth credentials. Keep the log entry for the auth path, but omit the username and password. No behavior change intended.
This commit is contained in:
@@ -432,7 +432,7 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
|
||||
vAuth.push_back(auth->password.size());
|
||||
vAuth.insert(vAuth.end(), auth->password.begin(), auth->password.end());
|
||||
sock.SendComplete(vAuth, g_socks5_recv_timeout, g_socks5_interrupt);
|
||||
LogDebug(BCLog::PROXY, "SOCKS5 sending proxy authentication %s:%s\n", auth->username, auth->password);
|
||||
LogDebug(BCLog::PROXY, "SOCKS5 sending username/password authentication\n");
|
||||
uint8_t pchRetA[2];
|
||||
if (InterruptibleRecv(pchRetA, 2, g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
|
||||
LogError("Error reading proxy authentication response\n");
|
||||
|
||||
Reference in New Issue
Block a user