Skip to content

Windows - #1

Merged
futureUnd1ground merged 7 commits into
mainfrom
windows
Nov 8, 2026
Merged

futureUnd1ground merged 7 commits into
mainfrom
windows

Conversation

@futureUnd1ground

Copy link
Copy Markdown
Owner

No description provided.

- scripts/build-engine-windows.sh: winws2.exe from zapret2 at the pinned
  commit using mingw-w64 instead of upstream cygwin
- scripts/windows/mingw-compat: POSIX shims (getifaddrs, wordexp, uname,
  sigaction, cygwin_conv_path, ...) needed to build nfq2 with mingw
- scripts/windows/patches/zapret2-mingw.patch: minimal source patch;
  remaining __CYGWIN__ guards are renamed to ZAPRET_WIN by the script
- third_party/windivert: signed WinDivert 2.2.2 runtime (dll/sys, LGPL)
…up wizard

- internal/engine: argv compiler split into common+linux+windows; Windows
  prefix uses --wf-tcp-out/--wf-udp-out WinDivert filters instead of
  nfqueue/nftables; byte-identical Linux output verified against HEAD
- internal/network: nftables backend is linux-only; Windows needs no
  system rules (the WinDivert filter dies with winws2)
- internal/service: systemd backend is linux-only; Windows uses a native
  service (golang.org/x/sys/windows/svc) with autostart, UAC elevation,
  %ProgramData%\FDPI state, engine.log, process-based conflict detection
  for zapret/goodbyedpi/byedpi
- internal/diagnostics: doctor and interface binding split per platform
- cmd/fdpi: platform files for elevation (sudo vs ShellExecuteEx runas),
  onboarding, logs (journalctl vs engine.log); new first-run wizard:
  component check, service/strategy selection, one-UAC install+apply+start;
  hidden service-install/service-remove commands
- TUI journal page reads the platform log source
- make dist-windows: fdpi.exe + winws2.exe + signed WinDivert 2.2.2 +
  lua strategy libraries + default config in one zip
- README_WINDOWS.md, .github/workflows/windows.yml (release on tag)
@futureUnd1ground
futureUnd1ground merged commit ed4cef7 into main Nov 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant