From 050270a7258a3478797eb92bc647590f52b190a7 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Sat, 25 Jun 2016 00:39:04 +0800 Subject: [PATCH] fix send back str type --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index 121f056..e1898fc 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -668,7 +668,7 @@ class TCPRelayHandler(object): try: data, sendback = self._protocol.server_post_decrypt(data) if sendback: - backdata = self._protocol.server_pre_encrypt('') + backdata = self._protocol.server_pre_encrypt(b'') backdata = self._encryptor.encrypt(backdata) backdata = self._obfs.server_encode(backdata) try: