Skip to content

Commit d80b590

Browse files
shaiaybrianmay
authored andcommitted
Fix joining of seed hosts to be compatible with python 3.5
this should also be backwards compatible with python 2
1 parent 7f0b5c6 commit d80b590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshuttle/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def onhostlist(hostlist):
487487

488488
if seed_hosts is not None:
489489
debug1('seed_hosts: %r\n' % seed_hosts)
490-
mux.send(0, ssnet.CMD_HOST_REQ, b'\n'.join(seed_hosts))
490+
mux.send(0, ssnet.CMD_HOST_REQ, str.encode('\n'.join(seed_hosts)))
491491

492492
while 1:
493493
rv = serverproc.poll()

0 commit comments

Comments
 (0)