Browse Source

fix send back str type

dev
BreakWa11 9 years ago
parent
commit
050270a725
  1. 2
      shadowsocks/tcprelay.py

2
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:

Loading…
Cancel
Save