fix bootstrapping issue when pf started before

This commit is contained in:
Sean Zeng 2015-03-18 09:25:41 -07:00
parent cd77ad5e7b
commit 10dc229125

View File

@ -498,7 +498,7 @@ def do_pf(port, dnsport, family, subnets, udp):
with open(pf_config_file, 'w+') as f:
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)
else:
pfctl('-dF', 'all')