Fix socks5 problem:

receive() returns bytes, not str
This commit is contained in:
Yann Leboulanger 2017-08-14 14:41:21 +02:00
parent bda11b7d39
commit f8383954e3

View file

@ -1208,7 +1208,7 @@ class Socks5Client(Socks5):
"""
result = 1
buff = self.receive()
if buff == '':
if buff == b'':
# end connection
self.pollend()
return