https-dns-proxy: bugfix: prevent canary domains duplicates 19525/head
authorStan Grishin <stangri@melmac.ca>
Tue, 4 Oct 2022 21:25:42 +0000 (21:25 +0000)
committerStan Grishin <stangri@melmac.ca>
Tue, 4 Oct 2022 21:25:42 +0000 (21:25 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.ca>
net/https-dns-proxy/Makefile
net/https-dns-proxy/files/https-dns-proxy.init

index 199f1c5faa2f039aafc6e780bdec39d1ae5d6750..cbbe670fbf7ad889de60a01e9562489629ce19ea 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=https-dns-proxy
 PKG_VERSION:=2021-11-22
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
index 887903fe098649fe3b249aae4d1a70f619d26b66..df91ad97d63927144c6767fa7863a74dbd119dec 100755 (executable)
@@ -257,7 +257,7 @@ dnsmasq_doh_server() {
                add)
                        if [ "$forceDNS" -ne 0 ]; then
                                for i in $canaryDomains; do
-                                       uci_add_list 'dhcp' "$cfg" 'server' "/${i}/"
+                                       uci_add_list_if_new 'dhcp' "$cfg" 'server' "/${i}/"
                                done
                        fi
                        case $address in