summaryrefslogtreecommitdiffstats
path: root/sshuttle/client.py
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2020-05-15 07:55:38 +1000
committerBrian May <brian@linuxpenguins.xyz>2020-05-29 07:44:51 +1000
commit6c21addde97c4582b3dccb22bca64c33af3e5eff (patch)
tree7e7ca84ef55444012645f996deca262b7d836d6c /sshuttle/client.py
parent4b320180c45c6ac96a73a966dda167457e9dd70b (diff)
Fix Python 3.8 file operations
Under Python 3.8 we can not wrap a File in a Sock. Note this currently requires Python >= 3.5
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'