diff options
author | Fata Nugraha <fata.nugraha@grabtaxi.com> | 2023-08-07 09:09:41 +0700 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2023-08-07 20:00:32 +1000 |
commit | 3abc3d2a1a12d8345502e6dd12b76728d7fcbcda (patch) | |
tree | 64f3a28342a87d7705847a31607392c4b6cffb2d | |
parent | 5b9f438d42c389aaf92f62ff58522c2f74f92b6b (diff) |
Fix lint issues
-rw-r--r-- | sshuttle/client.py | 2 | ||||
-rw-r--r-- | sshuttle/methods/nat.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py index 5d1d990..5dbb7ad 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -371,7 +371,7 @@ class FirewallClient: if self.group is None: group = b'-' elif isinstance(self.group, str): - group = bytes(self.group, 'utf-8') + group = bytes(self.group, 'utf-8') else: group = b'%d' % self.group self.pfile.write(b'GO %d %s %s %s %d\n' % diff --git a/sshuttle/methods/nat.py b/sshuttle/methods/nat.py index bd878b1..4da1a83 100644 --- a/sshuttle/methods/nat.py +++ b/sshuttle/methods/nat.py @@ -74,7 +74,7 @@ class Method(BaseMethod): _ipt('-A', chain, '-j', 'REDIRECT', '--dest', '%s/%s' % (snet, swidth), *(tcp_ports + ('--to-ports', str(port)))) - + # Don't route any remaining local traffic through sshuttle. _ipt('-A', chain, '-j', 'RETURN', '-m', 'addrtype', |