Update tcprelay.py
one time auth fail should be return
This commit is contained in:
parent
f7afcd4df0
commit
8e8ee5d490
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue