mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-06 21:02:55 +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:
parent
831df039bd
commit
06c20ed394
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user