From a532067a6afd025382d11b1bb15a93ddd624c26a Mon Sep 17 00:00:00 2001 From: Tea Watermeter Date: Thu, 31 Mar 2016 21:40:48 +0800 Subject: [PATCH] remove extra blank lines --- shadowsocks/tcprelay.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index bb6e4bd..cf45351 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -497,18 +497,14 @@ class TCPRelayHandler(object): if len(data) < 3: logging.warning('method selection header too short') raise BadSocksHeader - socks_version = common.ord(data[0]) nmethods = common.ord(data[1]) - if socks_version != 5: logging.warning('unsupported SOCKS protocol version ' + str(socks_version)) raise BadSocksHeader - if nmethods < 1 or len(data) != nmethods + 2: logging.warning('NMETHODS and number of METHODS mismatch') raise BadSocksHeader - noauth_exist = False for method in data[2:]: if common.ord(method) == METHOD_NOAUTH: