diff options
Diffstat (limited to 'sshuttle/methods/ipfw.py')
-rw-r--r-- | sshuttle/methods/ipfw.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshuttle/methods/ipfw.py b/sshuttle/methods/ipfw.py index 97d2ca6..e696b1f 100644 --- a/sshuttle/methods/ipfw.py +++ b/sshuttle/methods/ipfw.py @@ -193,9 +193,9 @@ class Method(BaseMethod): #if udp_listener.v6 is not None: # udp_listener.v6.setsockopt(SOL_IPV6, IPV6_RECVDSTADDR, 1) - def setup_firewall(self, port, dnsport, nslist, family, subnets, udp): + def setup_firewall(self, port, dnsport, nslist, family, subnets, udp, user): # IPv6 not supported - if family not in [socket.AF_INET ]: + if family not in [socket.AF_INET]: raise Exception( 'Address family "%s" unsupported by ipfw method_name' % family_to_string(family)) @@ -255,7 +255,7 @@ class Method(BaseMethod): else: ipfw('table', '126', 'add', '%s/%s' % (snet, swidth)) - def restore_firewall(self, port, family, udp): + def restore_firewall(self, port, family, udp, user): if family not in [socket.AF_INET]: raise Exception( 'Address family "%s" unsupported by tproxy method' |