This commit is contained in:
sbwml 2022-04-01 17:57:47 +08:00
parent f97b873dde
commit 581e12a179
2 changed files with 1 additions and 3 deletions

View File

@ -24,7 +24,6 @@ restore_setting() {
sed -i "/list server/d" /etc/config/dhcp sed -i "/list server/d" /etc/config/dhcp
uci set dhcp.@dnsmasq[0].noresolv='0' uci set dhcp.@dnsmasq[0].noresolv='0'
uci del dhcp.@dnsmasq[0].cachesize uci del dhcp.@dnsmasq[0].cachesize
uci set dhcp.@dnsmasq[0].filter_aaaa='1'
uci commit dhcp uci commit dhcp
} }
@ -36,7 +35,6 @@ prepare_setting() {
uci set dhcp.@dnsmasq[0].rebind_protection='0' uci set dhcp.@dnsmasq[0].rebind_protection='0'
uci set dhcp.@dnsmasq[0].noresolv="1" uci set dhcp.@dnsmasq[0].noresolv="1"
uci set dhcp.@dnsmasq[0].cachesize='0' uci set dhcp.@dnsmasq[0].cachesize='0'
uci set dhcp.@dnsmasq[0].filter_aaaa='0'
uci commit dhcp uci commit dhcp
fi fi
} }

View File

@ -19,7 +19,7 @@ fi
if L_exist pw; then if L_exist pw; then
if [ "$1" = "unset" ]; then if [ "$1" = "unset" ]; then
uci set passwall.@global[0].dns_mode='pdnsd' 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].dns_cache='1'
uci set passwall.@global[0].chinadns_ng='1' uci set passwall.@global[0].chinadns_ng='1'
elif [ "$1" = "" ]; then elif [ "$1" = "" ]; then