fix socks5 username/password auth

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

closes #221
pull/224/head
rofl0r 2018-02-11 14:58:47 +00:00
parent 831df039bd
commit 06c20ed394
1 changed files with 2 additions and 2 deletions

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;