From d9e9d53df78d550456d81b687cb32082513e85cc Mon Sep 17 00:00:00 2001 From: Revertron Date: Wed, 28 Apr 2021 12:20:26 +0200 Subject: [PATCH] Fixed a regression in DNS filter. --- 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 3e1d44c..264b257 100644 --- a/src/blockchain/filter.rs +++ b/src/blockchain/filter.rs @@ -48,7 +48,7 @@ impl DnsFilter for BlockchainFilter { let zone = parts[0].to_owned(); match data { None => { - if self.context.lock().unwrap().chain.is_zone_in_blockchain(u64::MAX, &zone) { + if self.context.lock().unwrap().chain.is_zone_in_blockchain(i64::MAX as u64, &zone) { trace!("Not found data for domain {}", &search); // Create DnsPacket let mut packet = DnsPacket::new();