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

Merge branch 'test' into develop

This commit is contained in:
antrouter 2021-03-30 09:53:55 +08:00
commit 98f9dc3296
28 changed files with 19562 additions and 33 deletions

View file

@ -876,7 +876,7 @@ _vps_firewall_redirect_port() {
config_get dest_port $1 dest_port
config_get src_ip $1 src_ip
config_get v2ray $1 v2ray "0"
config_get v2ray $1 name
config_get name $1 name
config_get dmz $1 dmz "0"
if [ -z "$src_dport" ] && [ -n "$dest_port" ]; then
src_dport=$dest_port

View file

@ -46,21 +46,12 @@ if [ "$(uci -q get dhcp.lan.dhcp_options)" = "" ]; then
EOF
fi
if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; 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
if [ -n "$(uci -q dhcp.@dnsmasq[0].server | grep 127.0.0.1)" ] && [ -z "$(uci -q dhcp.@dnsmasq[0].server | grep 127.0.0.1#5353)" ]; then
/etc/init.d/https-dns-proxy start
/etc/init.d/https-dns-proxy enable
else
/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'
# 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