https-dns-proxy: 2022-10-15-11 update 20555/head
authorStan Grishin <stangri@melmac.ca>
Wed, 22 Feb 2023 20:35:59 +0000 (20:35 +0000)
committerStan Grishin <stangri@melmac.ca>
Wed, 22 Feb 2023 20:39:56 +0000 (20:39 +0000)
* config file update
* introduce boot() function

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit 30aefce999bab3c24ce06594ee2f411cf2d8c72f)

net/https-dns-proxy/Makefile
net/https-dns-proxy/files/https-dns-proxy.config
net/https-dns-proxy/files/https-dns-proxy.init

index 4b519a9b214393ff94a516b2d1b9a425c97ad14e..fb99e64d8dc3395f8617d1a728abe0890394ec52 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=https-dns-proxy
 PKG_VERSION:=2022-10-15
-PKG_RELEASE:=10
+PKG_RELEASE:=11
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
index 0606055e5217dc51caa5d277cbbab76496000545..39b807b451c3e02084c4d87d036b4a2660fbd367 100644 (file)
@@ -19,7 +19,7 @@ config https-dns-proxy
        option bootstrap_dns '1.1.1.1,1.0.0.1'
        option resolver_url 'https://cloudflare-dns.com/dns-query'
        option listen_addr '127.0.0.1'
-       option listen_port '5054'
+       option listen_port '5053'
        option user 'nobody'
        option group 'nogroup'
 
@@ -27,6 +27,6 @@ config https-dns-proxy
        option bootstrap_dns '8.8.8.8,8.8.4.4'
        option resolver_url 'https://dns.google/dns-query'
        option listen_addr '127.0.0.1'
-       option listen_port '5053'
+       option listen_port '5054'
        option user 'nobody'
        option group 'nogroup'
index 0e75a14d78465cafd766d0dde029367f143b86d1..b4c55fea3103fff20c6b4f79f4c504d442634441 100755 (executable)
@@ -127,6 +127,11 @@ append_bootstrap() {
        [ "$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() {
        local cfg="$1" param listen_addr listen_port ipv6_resolvers_only p url