windows: helper programs go direct from the TUN only; the service's fetches too

The rule that sends the helpers' own connections direct (the sidecar,
wireproxy, tg-ws-proxy, Tor, whitelist-bypass, the cutoff probe) now names
the TUN's inbound and is left out without the TUN. sing-box looks a
connection's program up on every inbound once a rule names one, so the
service's fetches through the local listener, sent there to go through the
proxy, went direct once the cutoff probe put the service's program in the
list. Under the TUN the service's direct fetches now always leave directly,
as fetch::Route::Direct means.

README: the updater's verified and unverified parts; the cutoff probe's
port count as measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 23:35:51 +03:00
1 parent e9de863c4b
commit 2dd563ed61
4 files changed
+35 -12

No files matched your search

+11 -9
View File
@@ -127,15 +127,17 @@ impl Service {
{
direct.push(p.to_string_lossy().into_owned());
}
// The cutoff probe measures the line: its connections, and the service's own lookup of
// the line's network, leave directly.
if crate::cutoff::enabled(cfg) {
if let Some(p) = crate::cutoff::program(paths) {
direct.push(p.to_string_lossy().into_owned());
}
if let Ok(me) = std::env::current_exe() {
direct.push(me.to_string_lossy().into_owned());
}
// The cutoff probe measures the line: its connections leave directly.
if crate::cutoff::enabled(cfg)
&& let Some(p) = crate::cutoff::program(paths)
{
direct.push(p.to_string_lossy().into_owned());
}
// The service's own: what it fetches directly (fetch::Route::Direct, the line's network
// for the probe, a fallback past the proxy) leaves directly; through the proxy it goes
// to the local listener, which the TUN does not take.
if let Ok(me) = std::env::current_exe() {
direct.push(me.to_string_lossy().into_owned());
}
let (zd, zi) = crate::zapret::direct_sync(cfg, &paths.bin());
Env {