Because I like spaces.

This commit is contained in:
2026-09-03 14:37:40 -04:00
parent e0628ab962
commit 39a7d65ac9
+2
View File
@@ -28,10 +28,12 @@ fi
allow_hosts_start() allow_hosts_start()
{ {
echo "Running allow hosts" echo "Running allow hosts"
if [ -e "${allow_hosts_rules}" ] if [ -e "${allow_hosts_rules}" ]
then then
echo "include \"${allow_hosts_rules}\"" > ${rc_router_gen_dir}/pf.rules.conf echo "include \"${allow_hosts_rules}\"" > ${rc_router_gen_dir}/pf.rules.conf
fi fi
if [ -n "$( pfctl -s Anchor | grep '\<allow-hosts\>' )" ] if [ -n "$( pfctl -s Anchor | grep '\<allow-hosts\>' )" ]
then then
pfctl -a allow-hosts -f ${allow_hosts_rules} pfctl -a allow-hosts -f ${allow_hosts_rules}