diff options
author | Samuel Bernardo <samuel@lip.pt> | 2020-12-06 18:10:28 +0000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2020-12-28 10:20:46 +1100 |
commit | 6b87ad3fc7c017d597da3cadc740b76695727435 (patch) | |
tree | 87f7fa8fc6cd6146675f99b0e2474fbe9dee620d /sshuttle/methods | |
parent | 0efd23f3b83b0490f2ea000c7ecf30c3c6b83912 (diff) |
Set default tmark to pass coverage tests
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
Diffstat (limited to 'sshuttle/methods')
-rw-r--r-- | sshuttle/methods/tproxy.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sshuttle/methods/tproxy.py b/sshuttle/methods/tproxy.py index 03f8e1b..5ba9e13 100644 --- a/sshuttle/methods/tproxy.py +++ b/sshuttle/methods/tproxy.py @@ -152,8 +152,13 @@ class Method(BaseMethod): def setup_firewall(self, port, dnsport, nslist, family, subnets, udp, user): + if self.firewall.tmark is None: + tmark = '1' + else: + tmark = self.firewall.tmark + self.setup_firewall_tproxy(port, dnsport, nslist, family, subnets, udp, - user, self.firewall.tmark) + user, tmark) def setup_firewall_tproxy(self, port, dnsport, nslist, family, subnets, udp, user, tmark): |