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: try:
data, sendback = self._protocol.server_post_decrypt(data) data, sendback = self._protocol.server_post_decrypt(data)
if sendback: if sendback:
backdata = self._protocol.server_pre_encrypt('') backdata = self._protocol.server_pre_encrypt(b'')
backdata = self._encryptor.encrypt(backdata) backdata = self._encryptor.encrypt(backdata)
backdata = self._obfs.server_encode(backdata) backdata = self._obfs.server_encode(backdata)
try: try:

Loading…
Cancel
Save