windows: autoProxy routes slow sites, and has a page in the app
As upstream's sampler and slow judge: every minute, eleven Clash API snapshots a second apart; a site whose best direct transfer never beat slowBelowKiBps three times is owed an exit, and gets the first, in probe order, that answers it as well as direct does (probe --via); routed slow, it moves on after crawling twice there, and with no exit left it stays direct for a TTL. Here the Clash API is always on, so it works whatever the selection. The app's autoProxy page: on or off, a site probed or learned, the sites routed (forget one or all), the exits (bad ones marked), the exclusions and the slowness threshold. tools/screenshots.sh takes every page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
694e176353
commit
95ec15e14a
26 files changed
+727
-20
No files matched your search
@@ -131,9 +131,6 @@ fn not_ported(cfg: &Config, v: &mut Issues) {
|
||||
v.warn(path, format!("{what} {IGNORED}"));
|
||||
}
|
||||
}
|
||||
if cfg.proxy.enable && cfg.proxy.auto_proxy.enable && cfg.proxy.auto_proxy.slow_below_kibps > 0 {
|
||||
v.warn("proxy.autoProxy.slowBelowKiBps", "routing slow destinations is not on Windows yet: autoProxy routes the blocked ones");
|
||||
}
|
||||
if cfg.proxy.enable && cfg.proxy.backend == Backend::Xray {
|
||||
v.warn("proxy.backend", "the xray backend is not on Windows yet: the proxy does not start with it (sing-box or hybrid do)");
|
||||
}
|
||||
@@ -316,9 +313,8 @@ fn proxy(cfg: &Config, v: &mut Issues) {
|
||||
if p.auto_proxy.enable && !sing_box {
|
||||
v.error("proxy.autoProxy.enable", "autoProxy needs the sing-box or hybrid backend");
|
||||
}
|
||||
if p.auto_proxy.slow_below_kibps > 0 && p.auto_proxy.enable && p.selection == Selection::First {
|
||||
v.warn("proxy.autoProxy.slowBelowKiBps", "slow destinations are only routed with a selection other than \"first\"");
|
||||
}
|
||||
// Upstream samples transfers through the Clash API, which "first" selection leaves off
|
||||
// there; here it is always on, so slow sites are routed whatever the selection.
|
||||
if p.dns.fake_ip.enable && !sing_box {
|
||||
v.error("proxy.dns.fakeIp.enable", "fake IP needs the sing-box or hybrid backend");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user