mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-13 12:34:34 +02:00
Fix lint issues
This commit is contained in:
parent
5b9f438d42
commit
3abc3d2a1a
@ -371,7 +371,7 @@ class FirewallClient:
|
|||||||
if self.group is None:
|
if self.group is None:
|
||||||
group = b'-'
|
group = b'-'
|
||||||
elif isinstance(self.group, str):
|
elif isinstance(self.group, str):
|
||||||
group = bytes(self.group, 'utf-8')
|
group = bytes(self.group, 'utf-8')
|
||||||
else:
|
else:
|
||||||
group = b'%d' % self.group
|
group = b'%d' % self.group
|
||||||
self.pfile.write(b'GO %d %s %s %s %d\n' %
|
self.pfile.write(b'GO %d %s %s %s %d\n' %
|
||||||
|
@ -74,7 +74,7 @@ class Method(BaseMethod):
|
|||||||
_ipt('-A', chain, '-j', 'REDIRECT',
|
_ipt('-A', chain, '-j', 'REDIRECT',
|
||||||
'--dest', '%s/%s' % (snet, swidth),
|
'--dest', '%s/%s' % (snet, swidth),
|
||||||
*(tcp_ports + ('--to-ports', str(port))))
|
*(tcp_ports + ('--to-ports', str(port))))
|
||||||
|
|
||||||
# Don't route any remaining local traffic through sshuttle.
|
# Don't route any remaining local traffic through sshuttle.
|
||||||
_ipt('-A', chain, '-j', 'RETURN',
|
_ipt('-A', chain, '-j', 'RETURN',
|
||||||
'-m', 'addrtype',
|
'-m', 'addrtype',
|
||||||
|
Loading…
Reference in New Issue
Block a user