111
This commit is contained in:
parent
f97b873dde
commit
581e12a179
@ -24,7 +24,6 @@ restore_setting() {
|
||||
sed -i "/list server/d" /etc/config/dhcp
|
||||
uci set dhcp.@dnsmasq[0].noresolv='0'
|
||||
uci del dhcp.@dnsmasq[0].cachesize
|
||||
uci set dhcp.@dnsmasq[0].filter_aaaa='1'
|
||||
uci commit dhcp
|
||||
}
|
||||
|
||||
@ -36,7 +35,6 @@ prepare_setting() {
|
||||
uci set dhcp.@dnsmasq[0].rebind_protection='0'
|
||||
uci set dhcp.@dnsmasq[0].noresolv="1"
|
||||
uci set dhcp.@dnsmasq[0].cachesize='0'
|
||||
uci set dhcp.@dnsmasq[0].filter_aaaa='0'
|
||||
uci commit dhcp
|
||||
fi
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ fi
|
||||
if L_exist pw; then
|
||||
if [ "$1" = "unset" ]; then
|
||||
uci set passwall.@global[0].dns_mode='pdnsd'
|
||||
uci set passwall.@global[0].dns_forward='8.8.8.8'
|
||||
uci set passwall.@global[0].dns_forward='8.8.4.4'
|
||||
uci set passwall.@global[0].dns_cache='1'
|
||||
uci set passwall.@global[0].chinadns_ng='1'
|
||||
elif [ "$1" = "" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user