https-dns-proxy: bugfix: prevent creation of empty interface trigger 19661/head
authorStan Grishin <stangri@melmac.ca>
Fri, 21 Oct 2022 11:57:20 +0000 (11:57 +0000)
committerStan Grishin <stangri@melmac.ca>
Fri, 21 Oct 2022 11:59:44 +0000 (11:59 +0000)
* 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)

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

index b8fc04b7b9b46128bfc9aeab4d3e0db0177979b8..b349f9a2dffeeab39c4f6e26c6b09297995b297b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=https-dns-proxy
 PKG_VERSION:=2022-10-15
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
index 9395c88eabd8c8798a6a7dead1ab3c935ed0ec37..64a4b82b97deac80bd988b92fd3d8cfad9820526 100755 (executable)
@@ -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