fix a typo
This commit is contained in:
parent
a79b90d2a5
commit
bd6b8dd857
1 changed files with 2 additions and 2 deletions
4
local.py
4
local.py
|
@ -69,7 +69,7 @@ class Socks5Server(SocketServer.StreamRequestHandler):
|
||||||
def decrypt(self, data):
|
def decrypt(self, data):
|
||||||
return data.translate(decrypt_table)
|
return data.translate(decrypt_table)
|
||||||
|
|
||||||
def send_encrpyt(self, sock, data):
|
def send_encrypt(self, sock, data):
|
||||||
sock.send(self.encrypt(data))
|
sock.send(self.encrypt(data))
|
||||||
|
|
||||||
def handle(self):
|
def handle(self):
|
||||||
|
@ -108,7 +108,7 @@ class Socks5Server(SocketServer.StreamRequestHandler):
|
||||||
# reply immediately
|
# reply immediately
|
||||||
remote = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
remote = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
remote.connect((SERVER, REMOTE_PORT))
|
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]
|
print 'Tcp connect to', addr, port[0]
|
||||||
else:
|
else:
|
||||||
print 'command not supported'
|
print 'command not supported'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue