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: