Update tcprelay.py

one time auth fail should be return
This commit is contained in:
mengskysama 2016-07-18 23:31:51 +08:00 committed by GitHub
parent f7afcd4df0
commit 8e8ee5d490
1 changed files with 1 additions and 0 deletions

View File

@ -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