Revert "blocklist-helper: Silence a bogus pf warning"
This reverts commit2347ca21d6. A fix has been implemented in99560fe98c("pfctl: Do not warn if there is no Ethernet anchor"). Revert this commit to avoid having differences with upstream. MFC after: 2 days
This commit is contained in:
@@ -258,7 +258,7 @@ flush)
|
||||
pf)
|
||||
# dynamically determine which anchors exist
|
||||
for anchor in $(/sbin/pfctl -a "$2" -s Anchors 2> /dev/null); do
|
||||
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush 2> /dev/null
|
||||
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush
|
||||
/sbin/pfctl -a "$anchor" -F rules
|
||||
done
|
||||
echo OK
|
||||
|
||||
@@ -279,7 +279,7 @@ flush)
|
||||
pf)
|
||||
# dynamically determine which anchors exist
|
||||
for anchor in $(/sbin/pfctl -a "$2" -s Anchors 2> /dev/null); do
|
||||
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush 2> /dev/null
|
||||
/sbin/pfctl -a "$anchor" -t "port${anchor##*/}" -T flush
|
||||
/sbin/pfctl -a "$anchor" -F rules
|
||||
done
|
||||
echo OK
|
||||
|
||||
Reference in New Issue
Block a user