fix send back str type

This commit is contained in:
BreakWa11 2016-06-25 00:39:04 +08:00
parent f5434bdbd0
commit 050270a725

View file

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