summaryrefslogtreecommitdiffstats
path: root/sshuttle/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/client.py')
-rw-r--r--sshuttle/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py
index eebc0d8..efdaae1 100644
--- a/sshuttle/client.py
+++ b/sshuttle/client.py
@@ -461,7 +461,7 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
raise Fatal("failed to establish ssh session (1)")
else:
raise
- mux = Mux(serversock, serversock)
+ mux = Mux(serversock.makefile("rb"), serversock.makefile("wb"))
handlers.append(mux)
expected = b'SSHUTTLE0001'