From 3f36f4ede3ab135c13c3a8e082834fd36270a131 Mon Sep 17 00:00:00 2001 From: Revertron Date: Mon, 18 Nov 2024 12:43:18 +0100 Subject: [PATCH] Small DNS fix. --- src/blockchain/filter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain/filter.rs b/src/blockchain/filter.rs index 46e3520..a77a0ab 100644 --- a/src/blockchain/filter.rs +++ b/src/blockchain/filter.rs @@ -234,7 +234,7 @@ impl DnsFilter for BlockchainFilter { if answers.is_empty() && cname.is_some() { answers.push(cname.unwrap()); } - let mut domain_exists = !answers.is_empty(); + let mut domain_exists = !answers.is_empty() || subdomain.is_empty(); if answers.is_empty() { // If there are no records found we search for *.domain.tld record for mut record in data.records {