summaryrefslogtreecommitdiffstats
path: root/package/firewall
diff options
context:
space:
mode:
Diffstat (limited to 'package/firewall')
-rw-r--r--package/firewall/files/20-firewall5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/firewall/files/20-firewall b/package/firewall/files/20-firewall
index 32f8a853d..1cfc1b9c0 100644
--- a/package/firewall/files/20-firewall
+++ b/package/firewall/files/20-firewall
@@ -27,9 +27,10 @@ config_foreach load_zones zone
}
[ ifdown = "$ACTION" ] && {
+ local up
+ config_get up "$INTERFACE" up
+
for z in $ZONE; do
- local up
- config_get up "$INTERFACE" up
[ "$up" == "1" ] && delif "$INTERFACE" "$ifname" "$z"
done
}