fix server

This commit is contained in:
clowwindy
2014-06-01 17:16:58 +08:00
parent f49d086d6a
commit fd35f1d067
3 changed files with 5 additions and 3 deletions

View File

@ -248,6 +248,8 @@ class TCPRelayHandler(object):
return
if self._is_local:
data = self._encryptor.decrypt(data)
else:
data = self._encryptor.encrypt(data)
try:
self.write_all_to_sock(data, self._local_sock)
except Exception: