diff options
| author | Stan Grishin <stangri@melmac.ca> | 2022-10-21 11:57:20 +0000 |
|---|---|---|
| committer | Stan Grishin <stangri@melmac.ca> | 2022-10-21 11:59:44 +0000 |
| commit | ad1d25d0bf1b32fffcf4b9ab22d2b4d3fb2ddc5e (patch) | |
| tree | 87b8e2454d34d6d7cd4b7dfd7110ca86dcbc05e8 /net/https-dns-proxy/files/https-dns-proxy.init | |
| parent | 6af202f917dc2641c1842f0f77111c14d8c1a4d3 (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>
(cherry picked from commit 425cef2f8c0fd9f90d5f39c9777c877be09c2547)
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.init')
| -rwxr-xr-x | net/https-dns-proxy/files/https-dns-proxy.init | 2 |
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 |
