mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] firewall: make invalid redirects and duplicate zones non-fatal, print a notice and discard them
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23080 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -42,7 +42,7 @@ fw_load_defaults() {
|
||||
boolean disable_ipv6 0 \
|
||||
} || return
|
||||
[ -n "$FW_DEFAULTS_APPLIED" ] && {
|
||||
echo "Error: multiple defaults sections detected"
|
||||
fw_log error "duplicate defaults section detected, skipping"
|
||||
return 1
|
||||
}
|
||||
FW_DEFAULTS_APPLIED=1
|
||||
@@ -159,7 +159,8 @@ fw_load_zone() {
|
||||
fw_config_get_zone "$1"
|
||||
|
||||
list_contains FW_ZONES $zone_name && {
|
||||
fw_die "zone ${zone_name}: duplicated zone"
|
||||
fw_log error "zone ${zone_name}: duplicated zone, skipping"
|
||||
return 0
|
||||
}
|
||||
append FW_ZONES $zone_name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user