mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-07-01 23:31:19 +02:00
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
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user