Update tcprelay.py
one time auth fail should be return
This commit is contained in:
@ -339,6 +339,7 @@ class TCPRelayHandler(object):
|
|||||||
if onetimeauth_verify(_hash, _data, key) is False:
|
if onetimeauth_verify(_hash, _data, key) is False:
|
||||||
logging.warn('one time auth fail')
|
logging.warn('one time auth fail')
|
||||||
self.destroy()
|
self.destroy()
|
||||||
|
return
|
||||||
header_length += ONETIMEAUTH_BYTES
|
header_length += ONETIMEAUTH_BYTES
|
||||||
self._remote_address = (common.to_str(remote_addr), remote_port)
|
self._remote_address = (common.to_str(remote_addr), remote_port)
|
||||||
# pause reading
|
# pause reading
|
||||||
|
Reference in New Issue
Block a user