fix: zapret2 improvements

This commit is contained in:
FUFSoB committed 2026-10-04 19:43:32 +05:00
1 parent 2452d6fbe1
commit 017a947a18
24 files changed
+1350 -99

No files matched your search

+3 -2
View File
@@ -33,8 +33,9 @@ in
directSync = {
enable = bool true ''
Send zapret's domains direct in the proxy routing, so zapret handles them. With zapret2,
also the sites it pins and learns at runtime, after your own rules and autoProxy's.
The all-proxy and all-bypass route modes leave them out, like every direct list.
also the sites pinned at runtime, and the ones it learns once a strategy is seen getting
through for them, after your own rules and autoProxy's. The all-proxy and all-bypass
route modes leave them out, like every direct list.
'';
upstreamIps = bool false "Also send zapret's upstream IP lists direct.";
userIps = bool true "Also send `zapret-discord-youtube.ips` (minus `excludeIps`) direct.";
+26 -1
View File
@@ -101,6 +101,19 @@ in
};
};
proxyFallback = mkOption {
type = types.bool;
default = true;
description = ''
Send through the proxy what zapret2 cannot fix: a site none of its strategies get
through for (only its QUIC, when that alone fails), and an address that leaves
connections unanswered (blocked by address, as Telegram's are). Learned sites go
direct (`zapret.directSync`) only once a strategy is seen working for them. Needs an
outbound; works for traffic the proxy sees (TUN, TProxy, per-app routing; by address
only where it sees the address). `proxy-ctl zapret auto retry` gives one another try.
'';
};
strategyLog = mkOption {
type = types.bool;
default = true;
@@ -149,7 +162,19 @@ in
debugLog = mkOption {
type = types.bool;
default = false;
description = "Log why sites are or are not learned.";
description = "Log why sites are or are not learned (nfqws2's own learner).";
};
extendedDetection = mkOption {
type = types.bool;
default = true;
description = ''
Learn with proxy-suite's detector instead of nfqws2's. It also learns sites blocked
only some of the time (a working connection no longer clears the failures before it),
downloads that stall partway (the 16 KB cutoff), and requests that never get an
answer. Learned sites are logged with `strategyLog`. Only with the source's own
`profiles`, and for TLS: nfqws2-keenetic no longer learns plain HTTP sites.
'';
};
};