This commit is contained in:
mengskysama 2016-04-16 12:19:32 +08:00
parent f62a550e9f
commit 9844ba9dc7
1 changed files with 1 additions and 1 deletions

View File

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