From 3abc3d2a1a12d8345502e6dd12b76728d7fcbcda Mon Sep 17 00:00:00 2001 From: Fata Nugraha Date: Mon, 7 Aug 2023 09:09:41 +0700 Subject: Fix lint issues --- sshuttle/client.py | 2 +- sshuttle/methods/nat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sshuttle') 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', -- cgit v1.2.3