1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Keep config of https-dns-proxy but disable by default

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-04-10 09:57:57 +02:00
parent de9c881b6f
commit 080c06bfba

View file

@ -41,13 +41,13 @@ if [ "$(uci -q get dhcp.lan.dhcp_options)" = "" ]; then
fi
if [ "$(uci -q get https-dns-proxy.@https-dns-proxy[0].listen_port)" = "5053" ]; then
uci -q batch <<-EOF >/dev/null
delete https-dns-proxy.@https-dns-proxy[-1]
delete https-dns-proxy.@https-dns-proxy[-1]
commit https-dns-proxy
EOF
# /etc/init.d/https-dns-proxy stop
# /etc/init.d/https-dns-proxy disable
# uci -q batch <<-EOF >/dev/null
# delete https-dns-proxy.@https-dns-proxy[-1]
# delete https-dns-proxy.@https-dns-proxy[-1]
# commit https-dns-proxy
# EOF
/etc/init.d/https-dns-proxy stop
/etc/init.d/https-dns-proxy disable
# set https-dns-proxy.@https-dns-proxy[-1]=https-dns-proxy
# set https-dns-proxy.@https-dns-proxy[-1].listen_addr='127.0.0.1'
# set https-dns-proxy.@https-dns-proxy[-1].user='nobody'