mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
firewall: prevent excessive uci state data aggregation (#9152)
SVN-Revision: 26740
This commit is contained in:
parent
04d064a590
commit
2a386cee99
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=firewall
|
PKG_NAME:=firewall
|
||||||
|
|
||||||
PKG_VERSION:=2
|
PKG_VERSION:=2
|
||||||
PKG_RELEASE:=24
|
PKG_RELEASE:=25
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ fw__uci_state_add() {
|
|||||||
val="${val// $item / }"
|
val="${val// $item / }"
|
||||||
val="${val# }"
|
val="${val# }"
|
||||||
val="${val% }"
|
val="${val% }"
|
||||||
|
uci_revert_state firewall core $var
|
||||||
uci_set_state firewall core $var "${val:+$val }$item"
|
uci_set_state firewall core $var "${val:+$val }$item"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -19,6 +20,7 @@ fw__uci_state_del() {
|
|||||||
val="${val// $item / }"
|
val="${val// $item / }"
|
||||||
val="${val# }"
|
val="${val# }"
|
||||||
val="${val% }"
|
val="${val% }"
|
||||||
|
uci_revert_state firewall core $var
|
||||||
uci_set_state firewall core $var "$val"
|
uci_set_state firewall core $var "$val"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user