From 74b244ff2212a2fc993110c716c28d1c01c861c1 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Thu, 29 Jun 2023 20:43:34 +0700 Subject: [PATCH] router/unbound: fix dynamic set update inconsistency --- system/hosts/router/avahi-resolver-v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/hosts/router/avahi-resolver-v2.py b/system/hosts/router/avahi-resolver-v2.py index 035e7b4..8958e1b 100644 --- a/system/hosts/router/avahi-resolver-v2.py +++ b/system/hosts/router/avahi-resolver-v2.py @@ -646,7 +646,7 @@ def operate(id, event, qstate, qdata): n3 = n3.removesuffix(f'.{k}') qdomains = v['domains'] if not lookup_domain(qdomains, n3): - add_split_domain(qdomains, n3.split('.')) + add_split_domain(qdomains, ['*'] + n3.split('.')) old = [] if os.path.exists(f'/var/lib/unbound/{k}_domains.json'): with open(f'/var/lib/unbound/{k}_domains.json', 'rt') as f: