1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2026-05-15 10:03:23 +08:00

fix socks5 username/password auth

the version field in the auth check needs to be 5, not 1.

closes #221
This commit is contained in:
rofl0r
2018-02-11 14:58:47 +00:00
Unverified
parent 831df039bd
commit 06c20ed394
+2 -2
View File
@@ -350,8 +350,8 @@ static int tunnel_to(int sock, ip_type ip, unsigned short port, proxy_type pt, c
if(2 != read_n_bytes(sock, in, 2))
goto err;
if(in[0] != 1 || in[1] != 0) {
if(in[0] != 1)
if(in[0] != 5 || in[1] != 0) {
if(in[0] != 5)
goto err;
else
return BLOCKED;