mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix omr-bypass uci get
This commit is contained in:
parent
a5d46394e6
commit
bf33b7ca3b
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ _intf_rule() {
|
||||||
create omr_rules_dst_bypass_$intf hash:net hashsize 64
|
create omr_rules_dst_bypass_$intf hash:net hashsize 64
|
||||||
create omr_rules6_dst_bypass_$intf hash:net family inet6 hashsize 64
|
create omr_rules6_dst_bypass_$intf hash:net family inet6 hashsize 64
|
||||||
EOF
|
EOF
|
||||||
if [ "$(uci -q openmptcprouter.settings.uci_rules)" = "1" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.uci_rules)" = "1" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
delete network.${1}_fw_rule=rule
|
delete network.${1}_fw_rule=rule
|
||||||
set network.${1}_fw_rule=rule
|
set network.${1}_fw_rule=rule
|
||||||
|
@ -307,7 +307,7 @@ start_service() {
|
||||||
config_foreach _bypass_mac macs
|
config_foreach _bypass_mac macs
|
||||||
config_foreach _bypass_lan_ip lan_ip
|
config_foreach _bypass_lan_ip lan_ip
|
||||||
config_foreach _bypass_asn asns
|
config_foreach _bypass_asn asns
|
||||||
uci -q del dhcp.@dnsmasq[0].ipset
|
uci -q delete dhcp.@dnsmasq[0].ipset
|
||||||
config_foreach _bypass_domains domains
|
config_foreach _bypass_domains domains
|
||||||
uci -q commit dhcp
|
uci -q commit dhcp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue