elaborate reasons of header parsing failure
This commit is contained in:
parent
616a0c74bd
commit
565812ae15
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ def parse_header(data):
|
||||||
else:
|
else:
|
||||||
logging.warn('header is too short')
|
logging.warn('header is too short')
|
||||||
else:
|
else:
|
||||||
logging.warn('unsupported addrtype %d, maybe wrong password' %
|
logging.warn('unsupported addrtype %d, maybe wrong password or '
|
||||||
addrtype)
|
'encryption method' % addrtype)
|
||||||
if dest_addr is None:
|
if dest_addr is None:
|
||||||
return None
|
return None
|
||||||
return connecttype, to_bytes(dest_addr), dest_port, header_length
|
return connecttype, to_bytes(dest_addr), dest_port, header_length
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue