https-dns-proxy: 2022-10-15-11 update
* config file update * introduce boot() function Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
parent
0cdd7b8c0e
commit
30aefce999
3 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=https-dns-proxy
|
PKG_NAME:=https-dns-proxy
|
||||||
PKG_VERSION:=2022-10-15
|
PKG_VERSION:=2022-10-15
|
||||||
PKG_RELEASE:=10
|
PKG_RELEASE:=11
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
|
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
|
||||||
|
|
|
@ -19,7 +19,7 @@ config https-dns-proxy
|
||||||
option bootstrap_dns '1.1.1.1,1.0.0.1'
|
option bootstrap_dns '1.1.1.1,1.0.0.1'
|
||||||
option resolver_url 'https://cloudflare-dns.com/dns-query'
|
option resolver_url 'https://cloudflare-dns.com/dns-query'
|
||||||
option listen_addr '127.0.0.1'
|
option listen_addr '127.0.0.1'
|
||||||
option listen_port '5054'
|
option listen_port '5053'
|
||||||
option user 'nobody'
|
option user 'nobody'
|
||||||
option group 'nogroup'
|
option group 'nogroup'
|
||||||
|
|
||||||
|
@ -27,6 +27,6 @@ config https-dns-proxy
|
||||||
option bootstrap_dns '8.8.8.8,8.8.4.4'
|
option bootstrap_dns '8.8.8.8,8.8.4.4'
|
||||||
option resolver_url 'https://dns.google/dns-query'
|
option resolver_url 'https://dns.google/dns-query'
|
||||||
option listen_addr '127.0.0.1'
|
option listen_addr '127.0.0.1'
|
||||||
option listen_port '5053'
|
option listen_port '5054'
|
||||||
option user 'nobody'
|
option user 'nobody'
|
||||||
option group 'nogroup'
|
option group 'nogroup'
|
||||||
|
|
|
@ -127,6 +127,11 @@ append_bootstrap() {
|
||||||
[ "$ipv6_resolvers_only" -eq 0 ] && xappend '-4'
|
[ "$ipv6_resolvers_only" -eq 0 ] && xappend '-4'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boot() {
|
||||||
|
ubus -t 30 wait_for network.interface 2>/dev/null
|
||||||
|
rc_procd start_service 'on_boot'
|
||||||
|
}
|
||||||
|
|
||||||
start_instance() {
|
start_instance() {
|
||||||
local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p url
|
local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p url
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue