1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Add https-dns-proxy support

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-03-27 10:21:41 +01:00
parent a4686d0144
commit 30c38943f1

View file

@ -12,7 +12,7 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
if [ "$(uci -q show dhcp | grep 127.0.0.1#5353)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add_list dhcp.@dnsmasq[-1].server="127.0.0.1#5353"
add_list dhcp.@dnsmasq[-1].server="/use-application-dns.net/"
add_list dhcp.@dnsmasq[-1].server="/lan/"
commit dhcp
EOF
fi
@ -40,6 +40,20 @@ if [ "$(uci -q get dhcp.lan.dhcp_options)" = "" ]; then
EOF
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[0]
delete https-dns-proxy.@https-dns-proxy[1]
EOF
# 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'
# set https-dns-proxy.@https-dns-proxy[-1].group='nogroup'
# set https-dns-proxy.@https-dns-proxy[-1].bootstrap_dns='1.1.1.1,1.0.0.1'
# set https-dns-proxy.@https-dns-proxy[-1].resolver_url='https://cloudflare-dns.com/dns-query'
# set https-dns-proxy.@https-dns-proxy[-1].listen_port='5354'
fi
#uci -q batch <<-EOF >/dev/null
# set unbound.@unbound[-1].add_local_fqdn=0
# set unbound.@unbound[-1].localservice=1