This commit is contained in:
mengskysama 2016-04-16 12:19:32 +08:00
parent f62a550e9f
commit 9844ba9dc7

View file

@ -502,7 +502,7 @@ class TCPRelayHandler(object):
socks_version = common.ord(data[0]) socks_version = common.ord(data[0])
nmethods = common.ord(data[1]) nmethods = common.ord(data[1])
if socks_version != 5: if socks_version != 5:
logging.warning('unsupported SOCKS protocol version ' + logging.warning('unsupported SOCKS protocol version ' +
str(socks_version)) str(socks_version))
raise BadSocksHeader raise BadSocksHeader
if nmethods < 1 or len(data) != nmethods + 2: if nmethods < 1 or len(data) != nmethods + 2: