mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-24 06:44:21 +00:00
Set dnsmasq config after nft set are created (#443)
This commit is contained in:
commit
aac6bfe6d9
1 changed files with 6 additions and 7 deletions
|
@ -560,13 +560,6 @@ _intf_rule() {
|
|||
[ -z "$intf" ] && return
|
||||
# [ -z "$RELOAD" ] || [ "$(uci show firewall.omr_dst_bypass_$intf_4)" = "" ] && {
|
||||
#unset RELOAD
|
||||
#echo "$intf ip set dhcp"
|
||||
uci batch <<-EOF
|
||||
set dhcp.omr_dst_bypass_$intf=ipset
|
||||
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_4"
|
||||
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_6"
|
||||
commit dhcp
|
||||
EOF
|
||||
#echo "firewall omr_dst_bypass ipset"
|
||||
uci -q batch <<-EOF
|
||||
set firewall.omr_dst_bypass_${intf}_4=ipset
|
||||
|
@ -678,6 +671,12 @@ _intf_rule() {
|
|||
commit network
|
||||
EOF
|
||||
fi
|
||||
uci batch <<-EOF
|
||||
set dhcp.omr_dst_bypass_$intf=ipset
|
||||
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_4"
|
||||
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_6"
|
||||
commit dhcp
|
||||
EOF
|
||||
|
||||
if [ "$(uci -q get openmptcprouter.settings.proxy)" = "shadowsocks" ]; then
|
||||
config_load shadowsocks-libev
|
||||
|
|
Loading…
Reference in a new issue