From 0597112b9ee4e25ec04c74a16cf170d38bead06e Mon Sep 17 00:00:00 2001 From: Jackarain Date: Thu, 12 Sep 2024 23:59:55 +0800 Subject: [PATCH] Fix socks client auth pointer --- proxy/include/proxy/socks_client.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/proxy/include/proxy/socks_client.hpp b/proxy/include/proxy/socks_client.hpp index 525bf594c..7359a70e7 100644 --- a/proxy/include/proxy/socks_client.hpp +++ b/proxy/include/proxy/socks_client.hpp @@ -160,8 +160,6 @@ namespace proxy { for (size_t i = 0; i < ulen; i++) write(username[i], auth); - auth += ulen; - // password length. const auto plen = static_cast(passwd.size()); write(plen, auth); @@ -169,7 +167,6 @@ namespace proxy { // password. for (size_t i = 0; i < plen; i++) write(passwd[i], auth); - auth += plen; request.commit(bytes_to_write);