summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/files/https-dns-proxy.init
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2022-10-21 11:57:20 +0000
committerStan Grishin <stangri@melmac.ca>2022-10-21 11:57:29 +0000
commit425cef2f8c0fd9f90d5f39c9777c877be09c2547 (patch)
treed852b12236909113a084a349ac5a09320f95a5ed /net/https-dns-proxy/files/https-dns-proxy.init
parentcbf62d4328f477a39d8183bc51f26a25c0437377 (diff)
https-dns-proxy: bugfix: prevent creation of empty interface trigger
* When $wan/$wan6 are empty but double-quoted, it leads to creation of an interface trigger with empty interface Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.init')
-rwxr-xr-xnet/https-dns-proxy/files/https-dns-proxy.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init
index 9395c88ea..64a4b82b9 100755
--- a/net/https-dns-proxy/files/https-dns-proxy.init
+++ b/net/https-dns-proxy/files/https-dns-proxy.init
@@ -269,7 +269,7 @@ service_triggers() {
network_find_wan6 wan6
wan6="${wan6:-wan6}"
fi
- for i in "$wan" "$wan6"; do
+ for i in $wan $wan6; do
procd_add_interface_trigger "interface.*" "$i" "/etc/init.d/${packageName}" start
done
procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" start