Commit 10dc2291 authored by Sean Zeng's avatar Sean Zeng

fix bootstrapping issue when pf started before

parent cd77ad5e
...@@ -498,7 +498,7 @@ def do_pf(port, dnsport, family, subnets, udp): ...@@ -498,7 +498,7 @@ def do_pf(port, dnsport, family, subnets, udp):
with open(pf_config_file, 'w+') as f: with open(pf_config_file, 'w+') as f:
f.write('\n'.join(tables + translating_rules + filtering_rules) + '\n') f.write('\n'.join(tables + translating_rules + filtering_rules) + '\n')
pfctl('-ef', pf_config_file) pfctl('-Ef', pf_config_file)
os.remove(pf_config_file) os.remove(pf_config_file)
else: else:
pfctl('-dF', 'all') pfctl('-dF', 'all')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment