send current version of the subnegotiation in user/password response

This commit is contained in:
orignal 2023-06-17 10:08:04 -04:00
parent fee940238a
commit 07c529173e

View file

@ -332,7 +332,7 @@ namespace proxy
void SOCKSHandler::Socks5UserPasswdResponse ()
{
m_response[0] = 5; // Version
m_response[0] = 1; // Version of the subnegotiation
m_response[1] = 0; // Response code
LogPrint(eLogDebug, "SOCKS: v5 user/password response");
boost::asio::async_write(*m_sock, boost::asio::const_buffers_1(m_response, 2),