From f94fe117550edac2599470d4fc746f8e56b59c08 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 28 Mar 2024 15:24:38 +0100 Subject: [PATCH] Mark query as allowed when atigravity matches to prevent further checks such as CNAME inspection. This ensures antigravity matches have similar effects than explicitly allowed domains. Signed-off-by: DL6ER --- src/dnsmasq_interface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dnsmasq_interface.c b/src/dnsmasq_interface.c index 68cd310d..c8240329 100644 --- a/src/dnsmasq_interface.c +++ b/src/dnsmasq_interface.c @@ -1154,6 +1154,11 @@ static bool check_domain_blocked(const char *domain, const int clientID, // ... dns_cache->list_id = -1 * (list_id + 2); + // Mark query as allowed to prevent further checks such as CNAME + // inspection. This ensures antigravity matches have similar effects + // than explicitly allowed domains. + query->flags.allowed = true; + return false; }