From 938f8fef01a9f2d344cb186b41dd87b61a868b0b Mon Sep 17 00:00:00 2001 From: shaiay Date: Wed, 13 Jan 2016 23:30:49 +0200 Subject: [PATCH] Fix joining of seed hosts to be compatible with python 3.5 this should also be backwards compatible with python 2 --- sshuttle/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshuttle/client.py b/sshuttle/client.py index 7a7b6d7..bc07d6e 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -487,7 +487,7 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename, if seed_hosts is not None: debug1('seed_hosts: %r\n' % seed_hosts) - mux.send(0, ssnet.CMD_HOST_REQ, b'\n'.join(seed_hosts)) + mux.send(0, ssnet.CMD_HOST_REQ, str.encode('\n'.join(seed_hosts))) while 1: rv = serverproc.poll()