Browse Source

elaborate reasons of header parsing failure

tags/2.6.10
clowwindy 5 years ago
parent
commit
e74ae193d0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      shadowsocks/common.py

+ 2
- 2
shadowsocks/common.py View File

@@ -171,8 +171,8 @@ def parse_header(data):
else:
logging.warn('header is too short')
else:
logging.warn('unsupported addrtype %d, maybe wrong password' %
addrtype)
logging.warn('unsupported addrtype %d, maybe wrong password or '
'encryption method' % addrtype)
if dest_addr is None:
return None
return addrtype, to_bytes(dest_addr), dest_port, header_length

Loading…
Cancel
Save