update 05-09 23:44:43

This commit is contained in:
github-actions[bot] 2022-05-09 23:44:43 +08:00
parent c1a5e8b4e1
commit 1ad594c0d8
1 changed files with 3 additions and 1 deletions

View File

@ -21,13 +21,15 @@ 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].remote_dns='8.8.8.8'
uci set passwall.@global[0].dns_cache='1'
uci set passwall.@global[0].chinadns_ng='1'
elif [ "$1" = "" ]; then
uci set passwall.@global[0].dns_mode='udp'
uci set passwall.@global[0].dns_forward='127.0.0.1:5335'
uci set passwall.@global[0].remote_dns='127.0.0.1:5335'
uci del passwall.@global[0].dns_cache
uci set passwall.@global[0].chinadns_ng='0'
uci del passwall.@global[0].chinadns_ng
fi
uci commit passwall
if [ "$(pid passwall)" ]; then