From f99ada410fa799b419ca7819ed2bbcf779ec3d12 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Tue, 4 Oct 2022 21:25:42 +0000 Subject: [PATCH] https-dns-proxy: bugfix: prevent canary domains duplicates Signed-off-by: Stan Grishin --- 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 199f1c5faa..cbbe670fbf 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:=2021-11-22 -PKG_RELEASE:=5 +PKG_RELEASE:=6 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 887903fe09..df91ad97d6 100755 --- a/net/https-dns-proxy/files/https-dns-proxy.init +++ b/net/https-dns-proxy/files/https-dns-proxy.init @@ -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 -- 2.30.2