From f99ada410fa799b419ca7819ed2bbcf779ec3d12 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Tue, 4 Oct 2022 21:25:42 +0000 Subject: https-dns-proxy: bugfix: prevent canary domains duplicates Signed-off-by: Stan Grishin --- net/https-dns-proxy/files/https-dns-proxy.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/https-dns-proxy/files/https-dns-proxy.init') diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init index 887903fe0..df91ad97d 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 -- cgit