ostp/ostp-client/src/tunnel
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
..
inbounds Fix TUN no-internet: terminate helper cleanly and harden bypass routes 2026-06-22 14:57:20 +03:00
outbounds Fix Closing state, replace sent_history VecDeque with BTreeMap, clean up dead code 2026-06-21 22:09:56 +03:00
balancer.rs Add DNS Tunneling example to client init config 2026-06-19 23:21:39 +03:00
exclusion.rs Refactor: Phase 1 and 2 - Async architecture, JNI fixes, SmolTCP data races, and Tunnel optimizations 2026-06-03 02:06:06 +03:00
mod.rs feat(ostp-client): refactor to modular multi-server architecture (0.3.1) 2026-06-16 17:38:12 +03:00
process_lookup.rs Fix compiler warnings and errors 2026-06-19 17:51:58 +03:00
router.rs fix: critical buffer and UDP handler improvements 2026-06-17 22:19:20 +03:00
sni_sniff.rs feat: implement wintun dynamic downloading, add missing driver frontend modal, fix background logging and UAC helper issues 2026-06-09 01:01:36 +03:00
udp_nat.rs feat(ostp-client): refactor to modular multi-server architecture (0.3.1) 2026-06-16 17:38:12 +03:00
udp_nat.rs.bak feat(ostp-client): refactor to modular multi-server architecture (0.3.1) 2026-06-16 17:38:12 +03:00