From 8e8ee5d490ce319b8db9b61001dac51a7da4be63 Mon Sep 17 00:00:00 2001 From: mengskysama Date: Mon, 18 Jul 2016 23:31:51 +0800 Subject: [PATCH] Update tcprelay.py one time auth fail should be return --- shadowsocks/tcprelay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index cc49d67..075a50b 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -339,6 +339,7 @@ class TCPRelayHandler(object): if onetimeauth_verify(_hash, _data, key) is False: logging.warn('one time auth fail') self.destroy() + return header_length += ONETIMEAUTH_BYTES self._remote_address = (common.to_str(remote_addr), remote_port) # pause reading