update 2025-12-04 00:34:15

This commit is contained in:
kenzok8
2025-12-04 00:34:15 +08:00
parent 3629f5fd90
commit 336563d553
4 changed files with 23 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ start()
action=0
fi
host=$(uci get hostacl.@rule[$idx].host 2>/dev/null)
host=$(uci get hostacl.@rule[$idx].host 2>/dev/null | tr A-Z a-z)
host=$(echo $host | sed "s/,/ /g;s/'/ /g")
for HOST in $host; do
echo add acl=${idx},${action},$HOST >/dev/hostacl_ctl