From b2debc9276d6573a0ae708a342ad50611b248364 Mon Sep 17 00:00:00 2001 From: takeshikurosawaa <204226757+takeshikurosawaa@users.noreply.github.com> Date: Mon, 20 Apr 2026 00:00:13 +0300 Subject: [PATCH] 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. --- src/netbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netbase.cpp b/src/netbase.cpp index 5ac7d22af34..273b38f1a4a 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -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");