windows: autoProxy keeps to its exclusions, and its listing to its scope

proxy.autoProxy.exclude is never probed or routed: learn and probe
requests for an excluded host are refused, and a site learned whole
(example.com) routes no excluded name under it (intranet.example.com):
the learned rule skips them.

Without the secrets scope, proxy-ctl proxy auto lists the sites routed
and counts: the hosts probed, those left to zapret and the sites behind
each strike are browsing history, as the logs are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 16:36:00 +03:00
1 parent 5a89b8d11d
commit 694e176353
5 files changed
+82 -12

No files matched your search

+4 -3
View File
@@ -584,14 +584,15 @@ async fn auto(ctl: &Ctl, verb: Option<AutoVerb>) -> Result<()> {
} else {
println!(" {:<32} {:<20} PROBED AS", "DOMAIN", "EXIT");
for d in &domains {
println!(" {:<32} {:<20} {}", d["domain"].as_str().unwrap_or(""), d["exit"].as_str().unwrap_or(""), d["host"].as_str().unwrap_or(""));
println!(" {:<32} {:<20} {}", d["domain"].as_str().unwrap_or(""), d["exit"].as_str().unwrap_or(""), d["host"].as_str().unwrap_or("-"));
}
}
for e in r["exits"].as_array().into_iter().flatten().filter(|e| e["bad"] == true) {
let by: Vec<&str> = e["badBy"].as_array().into_iter().flatten().filter_map(Value::as_str).collect();
println!(" bad exit {} (probed last): {}", e["tag"].as_str().unwrap_or(""), by.join(", "));
let why = if by.is_empty() { format!("{} strike(s)", e["strikes"]) } else { by.join(", ") };
println!(" bad exit {} (probed last): {why}", e["tag"].as_str().unwrap_or(""));
}
let censored = r["censored"].as_array().map_or(0, Vec::len);
let censored = r["censored"].as_array().map_or_else(|| r["censored"].as_u64().unwrap_or(0) as usize, Vec::len);
println!(" {} host(s) judged, {censored} left to zapret, {} waiting to be probed", r["hostsJudged"], r["backlog"]);
}
AutoVerb::Probe { target, exits, via, keep_going } => {