From ad1d25d0bf1b32fffcf4b9ab22d2b4d3fb2ddc5e Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Fri, 21 Oct 2022 11:57:20 +0000 Subject: [PATCH] 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 (cherry picked from commit 425cef2f8c0fd9f90d5f39c9777c877be09c2547) --- net/https-dns-proxy/Makefile | 2 +- net/https-dns-proxy/files/https-dns-proxy.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/https-dns-proxy/Makefile b/net/https-dns-proxy/Makefile index b8fc04b7b9..b349f9a2df 100644 --- a/net/https-dns-proxy/Makefile +++ b/net/https-dns-proxy/Makefile @@ -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/ diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init index 9395c88eab..64a4b82b97 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 -- 2.30.2