From 565812ae1531937f46d94c34cf53c5baed66919a Mon Sep 17 00:00:00 2001 From: breakwa11 Date: Thu, 11 Jun 2015 01:07:54 +0800 Subject: [PATCH] elaborate reasons of header parsing failure --- shadowsocks/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/common.py b/shadowsocks/common.py index cdd123c..d740160 100644 --- a/shadowsocks/common.py +++ b/shadowsocks/common.py @@ -173,8 +173,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 connecttype, to_bytes(dest_addr), dest_port, header_length