From 0da0c109952025b1132f9b02b0efd37aa2e1278e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Mon, 26 Feb 2018 20:04:57 +0100 Subject: [PATCH] Socks5 parsing fix - Fixes #1134 - Came over BM, thank you kind stranger --- src/network/socks5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/socks5.py b/src/network/socks5.py index 52050ec9..52136bdc 100644 --- a/src/network/socks5.py +++ b/src/network/socks5.py @@ -39,7 +39,7 @@ class Socks5(Proxy): return True def state_auth_1(self): - ret = struct.unpack('BB', self.read_buf) + ret = struct.unpack('BB', self.read_buf[:2]) if ret[0] != 5: # general error raise GeneralProxyError(1)