firewall: move the config_get out of the loop, no need to call it multiple times
SVN-Revision: 17581
This commit is contained in:
parent
715285dd43
commit
8df03c85fe
1 changed files with 3 additions and 2 deletions
|
@ -27,9 +27,10 @@ config_foreach load_zones zone
|
||||||
}
|
}
|
||||||
|
|
||||||
[ ifdown = "$ACTION" ] && {
|
[ ifdown = "$ACTION" ] && {
|
||||||
for z in $ZONE; do
|
|
||||||
local up
|
local up
|
||||||
config_get up "$INTERFACE" up
|
config_get up "$INTERFACE" up
|
||||||
|
|
||||||
|
for z in $ZONE; do
|
||||||
[ "$up" == "1" ] && delif "$INTERFACE" "$ifname" "$z"
|
[ "$up" == "1" ] && delif "$INTERFACE" "$ifname" "$z"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue