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:
parent
a4686d0144
commit
30c38943f1
1 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue