windows: zapret2's 16 KB cutoff probe
Upstream's cutoff.nix and cutoff-probe.template.sh: z2k-detect (built from z2k's pinned source for Windows, in zapret2-extras) finds the networks this line cuts after ~16 KB, and with z2k's own strategies a whitelisted name per network; z2k-tcp16.lua inside winws2 reads the maps (Z2K_TCP16_*, their digest in the environment so a new map restarts winws2); what no name fixes goes to the zapret-cutoff rule-set for the proxy (cutoff.proxyFallback). Upstream keeps zapret2 off the probe with an nft cgroup rule. Here z2k-detect is patched to dial from a local port range (Z2K_TCP16_LOCAL_PORTS, 44000-47999, below Windows' dynamic range) and winws2 gets --wf-raw-filter leaving that range alone; under the TUN the probe and the service's own lookups of the line's network go direct. Rounds as upstream's timer: 5 min after start, every 10 min, probing when the line's network (ipinfo.io and ifconfig.co agreeing) changed or a day passed. Request::ZapretCutoff, proxy-ctl zapret cutoff [probe], a card on the DPI page. Verified live on a line that cuts (25 networks, a name for each), the Windows z2k-detect under Wine, winws2 --dry-run and --wf-save with the filter. gui-shot's scroll takes a count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d33f05c62c
commit
803e18db9d
19 files changed
+721
-18
No files matched your search
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# Before the shot, SHOT_STEPS does what it lists, in order, each followed by a moment for the
|
||||
# app to answer: "click:X,Y" (screen points), "type:TEXT" (no spaces), "key:NAME" (xdotool's
|
||||
# names, e.g. ctrl+a), "scroll:X,Y" (ten steps down, there), "wait:SECONDS".
|
||||
# names, e.g. ctrl+a), "scroll:X,Y[,N]" (N steps down, there; ten), "wait:SECONDS".
|
||||
set -euo pipefail
|
||||
OUT=$(realpath -m "${1:?the screenshot, a .png}"); shift
|
||||
WAIT=6
|
||||
@@ -36,7 +36,7 @@ x() { DISPLAY=":$n" "$XDOTOOL/bin/xdotool" "$@"; }
|
||||
for step in ${SHOT_STEPS:-}; do
|
||||
case $step in
|
||||
click:*) p=${step#click:}; x mousemove "${p%,*}" "${p#*,}" click 1 ;;
|
||||
scroll:*) p=${step#scroll:}; x mousemove "${p%,*}" "${p#*,}" click --repeat 10 5 ;;
|
||||
scroll:*) IFS=, read -r sx sy sn <<<"${step#scroll:}"; x mousemove "$sx" "$sy" click --repeat "${sn:-10}" 5 ;;
|
||||
type:*) x type --delay 40 "${step#type:}" ;;
|
||||
key:*) x key "${step#key:}" ;;
|
||||
wait:*) sleep "${step#wait:}" ;;
|
||||
|
||||
Reference in new issue
Block a user