diff options
author | dinosaurtirex <58666088+dinosaurtirex@users.noreply.github.com> | 2022-11-27 15:17:34 +0300 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2022-11-28 11:44:41 +1100 |
commit | b8e6ebf74152a725c35fc5a447ab61cec2a129c1 (patch) | |
tree | 9a4a62788218935a7281d5c26892dd472813baa9 | |
parent | 53da0368792198bb94cb3e031a9b7142cf0bcea1 (diff) |
Removed a little bit of legacy code
Removed a few lines of legacy code (to make it look more clean)
-rw-r--r-- | sshuttle/ssnet.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sshuttle/ssnet.py b/sshuttle/ssnet.py index c1c5d76..19d60ef 100644 --- a/sshuttle/ssnet.py +++ b/sshuttle/ssnet.py @@ -193,7 +193,6 @@ class SockWrapper: if not self.shut_read: debug2('%r: done reading' % self) self.shut_read = True - # self.rsock.shutdown(SHUT_RD) # doesn't do anything anyway def nowrite(self): if not self.shut_write: @@ -373,11 +372,6 @@ class Mux(Handler): if not self.too_full: self.send(0, CMD_PING, b('rttest')) self.too_full = True - # ob = [] - # for b in self.outbuf: - # (s1,s2,c) = struct.unpack('!ccH', b[:4]) - # ob.append(c) - # log('outbuf: %d %r' % (self.amount_queued(), ob)) def send(self, channel, cmd, data): assert isinstance(data, bytes) @@ -476,8 +470,6 @@ class Mux(Handler): def handle(self): self.fill() - # log('inbuf is: (%d,%d) %r' - # % (self.want, len(self.inbuf), self.inbuf)) while 1: if len(self.inbuf) >= (self.want or HDR_LEN): (s1, s2, channel, cmd, datalen) = \ |