From bd6b8dd85784abd96fc0e5f601a1139e28525186 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 1 Nov 2012 14:52:08 +0800 Subject: [PATCH] fix a typo --- local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local.py b/local.py index 34f7d10..45c7ebb 100755 --- a/local.py +++ b/local.py @@ -69,7 +69,7 @@ class Socks5Server(SocketServer.StreamRequestHandler): def decrypt(self, data): return data.translate(decrypt_table) - def send_encrpyt(self, sock, data): + def send_encrypt(self, sock, data): sock.send(self.encrypt(data)) def handle(self): @@ -108,7 +108,7 @@ class Socks5Server(SocketServer.StreamRequestHandler): # reply immediately remote = socket.socket(socket.AF_INET, socket.SOCK_STREAM) remote.connect((SERVER, REMOTE_PORT)) - self.send_encrpyt(remote, addr_to_send) + self.send_encrypt(remote, addr_to_send) print 'Tcp connect to', addr, port[0] else: print 'command not supported'