mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-07-04 16:50:34 +02:00
Compare commits
1 Commits
sshuttle-0
...
sshuttle-0
Author | SHA1 | Date | |
---|---|---|---|
41fd0348eb |
8
ssnet.py
8
ssnet.py
@ -350,8 +350,12 @@ class Mux(Handler):
|
|||||||
else:
|
else:
|
||||||
raise Exception('got CMD_HOST_LIST without got_host_list?')
|
raise Exception('got CMD_HOST_LIST without got_host_list?')
|
||||||
else:
|
else:
|
||||||
callback = self.channels[channel]
|
callback = self.channels.get(channel)
|
||||||
callback(cmd, data)
|
if not callback:
|
||||||
|
log('warning: closed channel %d got cmd=%s len=%d\n'
|
||||||
|
% (channel, cmd_to_name.get(cmd,hex(cmd)), len(data)))
|
||||||
|
else:
|
||||||
|
callback(cmd, data)
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
self.wsock.setblocking(False)
|
self.wsock.setblocking(False)
|
||||||
|
Reference in New Issue
Block a user