From 9b3f608a62974857cafff1c1d0a4af3fbc9b666a Mon Sep 17 00:00:00 2001 From: clowwindy Date: Mon, 17 Feb 2014 13:30:04 +0800 Subject: [PATCH] better error message with wrong password --- shadowsocks/local.py | 4 ++-- shadowsocks/server.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shadowsocks/local.py b/shadowsocks/local.py index 6163c1e..b3061e6 100755 --- a/shadowsocks/local.py +++ b/shadowsocks/local.py @@ -141,8 +141,8 @@ class Socks5Server(SocketServer.StreamRequestHandler): addr = socket.inet_ntop(socket.AF_INET6, addr_ip) addr_to_send += addr_ip else: - logging.warn('addr_type not support') - # not support + logging.warn('addr_type not supported') + # not supported return addr_port = self.rfile.read(2) addr_to_send += addr_port diff --git a/shadowsocks/server.py b/shadowsocks/server.py index 1224100..d045d5e 100755 --- a/shadowsocks/server.py +++ b/shadowsocks/server.py @@ -110,8 +110,8 @@ class Socks5Server(SocketServer.StreamRequestHandler): addr = socket.inet_ntop(socket.AF_INET6, self.decrypt(self.rfile.read(16))) else: - # not support - logging.warn('addr_type not support') + # not supported + logging.warn('addr_type not supported, maybe wrong password') return port = struct.unpack('>H', self.decrypt(self.rfile.read(2))) try: