mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-07 22:21:13 +01:00
Correct flake8 liting issues
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
This commit is contained in:
parent
d5cceb3e42
commit
9bdd9fea5d
@ -155,8 +155,8 @@ class Method(BaseMethod):
|
|||||||
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'
|
||||||
|
Loading…
Reference in New Issue
Block a user