From ada091c060f3f050f8af0b12c2bbed3606d4fc68 Mon Sep 17 00:00:00 2001 From: Lowder Date: Tue, 25 Aug 2026 17:19:40 +0500 Subject: [PATCH] fix: sni verdict --- website/src/api/probe.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/website/src/api/probe.rs b/website/src/api/probe.rs index da0796d..c0e6c9b 100644 --- a/website/src/api/probe.rs +++ b/website/src/api/probe.rs @@ -336,10 +336,16 @@ fn build_host_verdict(results: &[HostProbeResult], config: &ProbeConfig) -> &'st } else if matched.is_empty() { "uncertain" } else if is_strict_majority( - matched.len(), matched .iter() - .filter(|(_, evidence)| matches!(evidence, ProbeEvidence::ClientHello)) + .filter(|(h, _)| matches!(h.host_type, HostType::Whitelist)) + .count(), + matched + .iter() + .filter(|(h, evidence)| { + matches!(h.host_type, HostType::Whitelist) + && matches!(evidence, ProbeEvidence::ClientHello) + }) .count(), ) { "sni_block"