Fix processing SOCKS5 METHOD selection message
This commit is contained in:
parent
1184b23223
commit
1e46ec49da
|
@ -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[0:2])
|
||||||
if ret[0] != 5:
|
if ret[0] != 5:
|
||||||
# general error
|
# general error
|
||||||
raise GeneralProxyError(1)
|
raise GeneralProxyError(1)
|
||||||
|
|
Reference in New Issue
Block a user