mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-07 14:17:56 +03:00
fix: sni verdict
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user