mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-12 08:29:15 +01:00
Oops, previous change to ipfw settings prevented cleanup from working.
This commit is contained in:
parent
33efa5ac62
commit
5a4a2ab7f9
@ -58,7 +58,7 @@ def ipfw_rule_exists(n):
|
|||||||
p = subprocess.Popen(argv, stdout = subprocess.PIPE)
|
p = subprocess.Popen(argv, stdout = subprocess.PIPE)
|
||||||
for line in p.stdout:
|
for line in p.stdout:
|
||||||
if line.startswith('%05d ' % n):
|
if line.startswith('%05d ' % n):
|
||||||
if line[5:].find('ipttl 42') < 0:
|
if line.find('ipttl 42') < 0 and line.find('established') < 0:
|
||||||
raise Fatal('non-sshuttle ipfw rule #%d already exists!' % n)
|
raise Fatal('non-sshuttle ipfw rule #%d already exists!' % n)
|
||||||
return True
|
return True
|
||||||
rv = p.wait()
|
rv = p.wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user