3 Commits

Author SHA1 Message Date
OpenCode Agent
62ec6c5749 fix(core): critical fixes for service menu, autotest, strategy runner, dependencies
- service.sh: split service_remove into internal (no prompts) and interactive
  versions to prevent 'eternal wait' when installing new strategy.
  Install now calls service_remove_internal > /dev/null instead of service_remove.
  Also filter strategy list to general*.sh only to avoid clutter.
  Systemd ExecStart now points to run_strategy.sh <name> consistently.

- run_strategy.sh: add SIGTERM/SIGINT trap cleanup_strategy() that kills nfqws
  and cleans up firewall. Prevents stale nfqws/firewall rules after autotest kill.
  Also handles nfqws exit gracefully with final cleanup.

- autotest.sh: rewritten to test strategies by config name (not wrapper filename).
  Stop now sends SIGTERM to wrapper (which triggers trap cleanup) instead of
  bare kill. Added extra sleep after stop to let trap fire.
  Auto-install ExecStart fixed to run_strategy.sh <strategy>.

- setup.sh: added libmnl-dev and zlib1g-dev to Ubuntu/Debian dependency install
  to prevent build failures (missing libmnl/libmnl.h and zlib.h).

- general*.sh: removed UTF-8 BOM (0xEF 0xBB 0xBF) that caused 'exec format error'
  when running scripts on Linux. All 19 wrappers cleaned.

- ensure_wrappers.sh: always rewrite wrappers to ensure no stale BOM or paths.

Fixes: eternal wait on menu option 1, nfqws build failure, stale processes after test.
2026-05-10 22:47:48 +04:00
Stitch505
1bca276c7f fix: generate all 19 strategies/*.conf from upstream .bat files
- Add Python converter (convert_bat.py) + PowerShell wrapper generator
- All general*.sh now point to run_strategy.sh <name>
- Normalize filenames: spaces → underscores (FAKE_TLS_AUTO_ALT etc.)
- Fix sync_from_upstream.sh: underscores in names
- Update README: document modular architecture, sync, hosts
2026-05-10 19:57:53 +04:00
Stitch505
80e0a116e1 Initial commit: zapret-discord-youtube-linux v1.9.8c-linux 2026-05-10 19:06:04 +04:00