From 6dae7d231ec56ad9e26ee73c7f63a798fc82de17 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 24 Apr 2014 15:24:43 +0800 Subject: [PATCH] fix local --- shadowsocks/local.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shadowsocks/local.py b/shadowsocks/local.py index 88e0749..e54484e 100755 --- a/shadowsocks/local.py +++ b/shadowsocks/local.py @@ -122,7 +122,6 @@ class Socks5Server(SocketServer.StreamRequestHandler): self.encryptor = encrypt.Encryptor(KEY, METHOD) sock = self.connection data = sock.recv(262) - print '1.', len(data), data.encode('hex') if not data: sock.close() return @@ -135,16 +134,13 @@ class Socks5Server(SocketServer.StreamRequestHandler): sock.send('\x05\x02') try: ver_ulen = sock.recv(2) - print ver_ulen.encode('hex') ulen = ord(ver_ulen[1]) if ulen: username = sock.recv(ulen) - print username assert(ulen == len(username)) plen = ord(sock.recv(1)) if plen: _password = sock.recv(plen) - print _password assert(plen == len(_password)) sock.send('\x01\x00') except Exception as e: @@ -156,7 +152,6 @@ class Socks5Server(SocketServer.StreamRequestHandler): logging.error('unsupported method %d' % method) return data = self.rfile.read(4) or '\x00' * 4 - print '2.', len(data), data.encode('hex') mode = ord(data[1]) if mode == 1: pass