net: log SOCKS5 auth before sending

This commit is contained in:
takeshikurosawaa
2026-04-20 01:34:07 +03:00
parent b2debc9276
commit 3bf3b6d59a

View File

@@ -431,8 +431,8 @@ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* a
vAuth.insert(vAuth.end(), auth->username.begin(), auth->username.end());
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 username/password authentication\n");
sock.SendComplete(vAuth, g_socks5_recv_timeout, g_socks5_interrupt);
uint8_t pchRetA[2];
if (InterruptibleRecv(pchRetA, 2, g_socks5_recv_timeout, sock) != IntrRecvError::OK) {
LogError("Error reading proxy authentication response\n");