diff options
Diffstat (limited to 'package/firewall/files/lib')
-rw-r--r-- | package/firewall/files/lib/core_interface.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/firewall/files/lib/core_interface.sh b/package/firewall/files/lib/core_interface.sh index ed6a4b1..bc9eb96 100644 --- a/package/firewall/files/lib/core_interface.sh +++ b/package/firewall/files/lib/core_interface.sh @@ -8,6 +8,7 @@ fw__uci_state_add() { val="${val// $item / }" val="${val# }" val="${val% }" + uci_revert_state firewall core $var uci_set_state firewall core $var "${val:+$val }$item" } @@ -19,6 +20,7 @@ fw__uci_state_del() { val="${val// $item / }" val="${val# }" val="${val% }" + uci_revert_state firewall core $var uci_set_state firewall core $var "$val" } |