Fix lint issues

This commit is contained in:
Fata Nugraha 2023-08-07 09:09:41 +07:00 committed by Brian May
parent 5b9f438d42
commit 3abc3d2a1a
2 changed files with 2 additions and 2 deletions

View File

@ -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' %

View File

@ -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',