From 39a7d65ac9ee0048e0e17155f9f66940c4c75d56ca22920d3f77b4145d86e1a7 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 3 Sep 2026 14:37:40 -0400 Subject: [PATCH] Because I like spaces. --- rc.d/allow_hosts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc.d/allow_hosts b/rc.d/allow_hosts index 73ca382..ae24da4 100755 --- a/rc.d/allow_hosts +++ b/rc.d/allow_hosts @@ -28,10 +28,12 @@ fi allow_hosts_start() { echo "Running allow hosts" + if [ -e "${allow_hosts_rules}" ] then echo "include \"${allow_hosts_rules}\"" > ${rc_router_gen_dir}/pf.rules.conf fi + if [ -n "$( pfctl -s Anchor | grep '\' )" ] then pfctl -a allow-hosts -f ${allow_hosts_rules}