mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-02 19:57:56 +03:00
fix: change whitelist verdict
This commit is contained in:
@@ -396,10 +396,16 @@ fn build_host_verdict(results: &[HostProbeResult], config: &ProbeConfig) -> &'st
|
||||
) {
|
||||
"sni_block"
|
||||
} else if is_strict_majority(
|
||||
matched.len(),
|
||||
matched
|
||||
.iter()
|
||||
.filter(|(_, evidence)| matches!(evidence, ProbeEvidence::Good))
|
||||
.filter(|(h, _)| matches!(h.host_type, HostType::Blacklist))
|
||||
.count(),
|
||||
matched
|
||||
.iter()
|
||||
.filter(|(host, evidence)| {
|
||||
matches!(host.host_type, HostType::Blacklist)
|
||||
&& !matches!(evidence, ProbeEvidence::DataTimeout { .. })
|
||||
})
|
||||
.count(),
|
||||
) {
|
||||
"whitelist"
|
||||
|
||||
Reference in New Issue
Block a user