Socks5 parsing fix
- Fixes #1134 - Came over BM, thank you kind stranger
This commit is contained in:
parent
140265621f
commit
0da0c10995
|
@ -39,7 +39,7 @@ class Socks5(Proxy):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def state_auth_1(self):
|
def state_auth_1(self):
|
||||||
ret = struct.unpack('BB', self.read_buf)
|
ret = struct.unpack('BB', self.read_buf[:2])
|
||||||
if ret[0] != 5:
|
if ret[0] != 5:
|
||||||
# general error
|
# general error
|
||||||
raise GeneralProxyError(1)
|
raise GeneralProxyError(1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user