1
1
mirror of https://github.com/sshuttle/sshuttle.git synced 2025-04-29 13:44:24 +02:00

Correct flake8 liting issues

Signed-off-by: Samuel Bernardo <samuel@lip.pt>
This commit is contained in:
Samuel Bernardo 2020-12-06 17:51:18 +00:00 committed by Brian May
parent d5cceb3e42
commit 9bdd9fea5d

View File

@ -153,10 +153,10 @@ class Method(BaseMethod):
def setup_firewall(self, port, dnsport, nslist, family, subnets, udp, def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
user): user):
self.setup_firewall_tproxy(port, dnsport, nslist, family, subnets, udp, self.setup_firewall_tproxy(port, dnsport, nslist, family, subnets, udp,
user, self.firewall.tmark) user, self.firewall.tmark)
def setup_firewall_tproxy(self, port, dnsport, nslist, family, subnets, udp, def setup_firewall_tproxy(self, port, dnsport, nslist, family, subnets,
user, tmark): udp, user, tmark):
if family not in [socket.AF_INET, socket.AF_INET6]: if family not in [socket.AF_INET, socket.AF_INET6]:
raise Exception( raise Exception(
'Address family "%s" unsupported by tproxy method' 'Address family "%s" unsupported by tproxy method'