Browse Source

elaborate reasons of header parsing failure

master
clowwindy 10 years ago
parent
commit
e74ae193d0
  1. 4
      shadowsocks/common.py

4
shadowsocks/common.py

@ -171,8 +171,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 addrtype, to_bytes(dest_addr), dest_port, header_length return addrtype, to_bytes(dest_addr), dest_port, header_length

Loading…
Cancel
Save