ostp/ostp-gui/src-tauri
ospab b6e78c1d29 Fix TUN no-internet: terminate helper cleanly and harden bypass routes
The helper logged "exiting" but never terminated: the WinTun blocking
receive runs on a thread that task.abort() cannot cancel, so it kept the
ostp_tun adapter (and its metric-0 default route) alive and hung the tokio
runtime as a zombie. The next connect then faced two competing default
routes and failed to install the per-server /32 bypass, so the client's own
handshake packets looped back into the dead tunnel — every OSTP handshake
timed out and there was no internet.

- ostp-tun-helper: std::process::exit(0) after run_server returns so the
  kernel reclaims the adapter and all routes bound to it.
- ostp-tun/windows_route: dedupe bypass IPs, purge any stale /32 for the
  dest before adding (enumerate + delete), and log add failures at warn!
  instead of debug! so the cause is visible in the INFO-level helper log.
- ostp-tun/windows: keep .destination() LUID default route (reliable
  capture) alongside the racy friendly-name route; retry create() through
  the transient ERROR_INVALID_PARAMETER window.
- ostp-client: wire BridgeMetrics.connection_state through runner and
  inbounds so the GUI reflects connecting/connected/disconnected.
- ostp-gui: parse JSONC config (strip // and /* */) in the settings view.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 14:57:20 +03:00
..
capabilities fix: declare and grant custom Tauri v2 command permissions for GUI 2026-05-17 18:59:44 +03:00
icons docs: remove useless ostp-wiki folder from root 2026-06-19 14:42:45 +03:00
permissions docs: remove useless ostp-wiki folder from root 2026-06-19 14:42:45 +03:00
src Suppress dead_code warnings in ostp-gui lib 2026-06-21 22:41:22 +03:00
.gitignore feat(gui): add fully native tauri windows gui with premium mobile layout, real-time statistics polling, in-app config editor, and graceful exit cleanup 2026-05-15 22:01:20 +03:00
Cargo.lock Fix TUN no-internet: terminate helper cleanly and harden bypass routes 2026-06-22 14:57:20 +03:00
Cargo.toml docs: remove useless ostp-wiki folder from root 2026-06-19 14:42:45 +03:00
build.rs feat(gui): privileged TUN helper architecture - GUI runs unprivileged, UAC prompt shown only for TUN mode via ostp-tun-helper.exe IPC 2026-05-15 23:08:14 +03:00
tauri.conf.json Restore Session import for Windows compatibility and fix Flutter build 2026-06-19 18:24:51 +03:00