https-dns-proxy: 2022-10-15-11 update

* config file update
* introduce boot() function

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit 30aefce999)
This commit is contained in:
Stan Grishin
2023-02-22 20:35:59 +00:00
parent 0a15829d73
commit 656835201b
3 changed files with 8 additions and 3 deletions

View File

@@ -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