Fix socks5 problem:
receive() returns bytes, not str
This commit is contained in:
parent
bda11b7d39
commit
f8383954e3
1 changed files with 3 additions and 3 deletions
|
@ -1208,7 +1208,7 @@ class Socks5Client(Socks5):
|
|||
"""
|
||||
result = 1
|
||||
buff = self.receive()
|
||||
if buff == '':
|
||||
if buff == b'':
|
||||
# end connection
|
||||
self.pollend()
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue