diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2011-02-04 22:21:25 -0800 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2011-02-04 22:21:25 -0800 |
commit | cd15e2eda6ab497d6dd9b8d507a5e17d14f0b1e6 (patch) | |
tree | 4e7f6359ef1b4bbca1cb813ecadf6c2c06d3e48b /Sshuttle VPN.app/Contents/Resources/sshuttle/client.py | |
parent | 76359bc71ce4d850cb5778026dd359a0ee3cb6f8 (diff) |
MacOS precompiled app package for sshuttle-0.51sshuttle-0.51-macos-bin
Diffstat (limited to 'Sshuttle VPN.app/Contents/Resources/sshuttle/client.py')
-rw-r--r-- | Sshuttle VPN.app/Contents/Resources/sshuttle/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Sshuttle VPN.app/Contents/Resources/sshuttle/client.py b/Sshuttle VPN.app/Contents/Resources/sshuttle/client.py index 1ade5d9..fa93c26 100644 --- a/Sshuttle VPN.app/Contents/Resources/sshuttle/client.py +++ b/Sshuttle VPN.app/Contents/Resources/sshuttle/client.py @@ -273,6 +273,10 @@ def _main(listener, fw, ssh_cmd, remotename, python, latency_control, sock.close() return chan = mux.next_channel() + if not chan: + log('warning: too many open channels. Discarded connection.\n') + sock.close() + return mux.send(chan, ssnet.CMD_CONNECT, '%s,%s' % dstip) outwrap = MuxWrapper(mux, chan) handlers.append(Proxy(SockWrapper(sock, sock), outwrap)) |