revert patch

which broke proxychains-ng
./proxychains4 wget -O- google.com 
[proxychains] config file found: /home/mlc/.proxychains/proxychains.conf
[proxychains] preloading ./libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.12-git-14-g06c20ed
--2018-03-05 22:16:43--  http://google.com/
Resolving google.com (google.com)... 224.0.0.1
Connecting to google.com (google.com)|224.0.0.1|:80... [proxychains] Strict chain  ...  127.0.0.1:5555  ...  google.com:80 <--socket error or timeout!
failed: Connection refused.
pull/224/head
ganji3484 2018-03-05 22:28:44 +01:00 committed by GitHub
parent 06c20ed394
commit 433d435151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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] != 5 || in[1] != 0) {
if(in[0] != 5)
if(in[0] != 1 || in[1] != 0) {
if(in[0] != 1)
goto err;
else
return BLOCKED;