15 Commits
Author SHA1 Message Date
shenandshen 9e05f1ad93 test: add automated regression and mesh proxy coexistence suites 2026-11-03 20:50:02 -08:00
shenandshen b656c1896a fix: improve SDK UDP throughput and transport selection
Yield during UDP receive bursts to let session consumers drain bounded queues. Prioritize measured RTT over protocol preference and enlarge user-space subnet TCP buffers with validated limits.

Add packet-level throughput diagnostics, transport selection coverage, and investigation records. SDK regression suite: 21 tests passed; local delay and throughput experiments documented.
2026-10-15 23:53:10 -07:00
shenandshen c1d0739b95 feat: support custom bypass rules and mesh routing policies 2026-10-15 07:06:34 -07:00
shenleiandClaude Opus 5.5 dc1bfc99d2 Move mesh networking logic into the SDK and fix lifecycle bugs
SDK:
- Add build_config/migrate_config, mesh_cidrs, route_generation, health
  and start_bridged; expose abi_info (capability revision 2).
- Add wait_routes long-poll; stop wakes waiters, and context_free now
  stops the network immediately instead of waiting for waiters to time out.

Hosts:
- Dart: waitRoutes(), MeshProxySession route watcher, ABI capability check.
- Android: fix a deadlock where every VPN request waited on its own
  single-thread worker; requests are now async, status is served from a
  snapshot, and combined mode reports Partial when the mesh stops.
- macOS helper: mesh-only unified mode stops when the mesh is lost;
  installed_subnet_routes excludes the overlay.
- Lab: restore Partial sessions, write migrated profiles back, remove the
  unreachable TOML import dialog; native test now connects via the form.

Docs updated accordingly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 18:17:42 +09:00
shenleiandClaude Code 29d236f3fe Add copy-all-logs buttons and log status refresh failures
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-15 13:47:56 +09:00
shenleiandClaude Code 5b7523fc4f Fix desktop TUN address leak that broke VPN rebuilds
sing-tun creates its utun control socket without SOCK_CLOEXEC
(tun_darwin.go), so any child the unified helper spawns while the
engine runs - the DnsGuard scutil process, route commands - inherits
that socket and pins the utun interface past engine stop. The
announcement-driven rebuild then fails with "desktop TUN address
already in use" and tears down the whole VPN session.

Mark every utun socket in the process close-on-exec as soon as the
engine starts. Stop now only warns when Darwin still holds the
retiring address (classified via cleanupFailure), and Start waits
bounded for an address this engine itself retained while failing fast
on any other owner.

Adds a root-only drain diagnostic with a real-profile pass, a
child-guard regression test that reproduced the production failure
before the fix, and a --self-test-unified-rebuild helper self-test
that forces stop/start cycles in combined mode end to end.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-15 13:47:52 +09:00
shenleiandClaude Haiku 5.5 50cfbb6867 Raise data-plane TCP buffers to lift single-stream throughput
Single TCP streams through the SDK data plane were capped at about
window / RTT with a 128 KiB window. Raise the per-socket TCP receive
buffer to 1 MiB and transmit buffer to 512 KiB. smoltcp negotiates
window scaling from the buffer size, so no wire-format change is needed.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-15 10:30:43 +09:00
shenandshen 72566b9a8a Add proxy speed measurement, connection logs and standalone Android packaging 2026-10-13 23:08:57 -07:00
shenandshen f94dab0555 Improve VPN video routing, profile storage and authorization reuse 2026-10-13 00:34:16 -07:00
shenandshen c94143dfae Keep macOS client running in the menu bar when its window closes
Retain the main Flutter window, add reopen and explicit quit actions, and preserve its controller while hidden. Fix native test host paths and cover the window and menu lifecycle with XCTest.
2026-10-12 18:46:53 -07:00
shenandshen c7cc2aa865 Fix VPN internet connectivity and simplify client setup
Initialize Android physical interfaces and preserve macOS scoped routes. Add redacted diagnostics, default DNS, ordered auto-save, simplified controls, scanner rotation settings, and native regression coverage. Restore vendored build sources and document validation and stability checks.
2026-10-12 06:51:25 -07:00
shenleiandClaude Haiku 5.5 2f185f914d Snapshot uncommitted work: proxy UI, sing-box integration, socks bridge
- Lab app: proxy panel, node editor, configuration and detail pages,
  responsive layout, and related tests
- Add meshport-socks crate and sing-box bridge scripts/docs
- Add singbox_flutter binding and meshport_client_core package
- FFI, VPN helper (unified mac path), and Android/macOS runner updates
- Docs for architecture, client runtime, UI design, and validation
- UI design output artifacts under outputs/ui

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-12 10:06:15 +09:00
shenlei 10b10e5bdf Load bundled personal defaults when no saved profile exists 2026-10-10 16:27:22 +09:00
shenlei 2eb9a6d81c Fix Android VPN startup and verify automatic subnet routing 2026-10-10 16:20:26 +09:00
shenlei e73e599165 Initial MeshPort SDK and cross-platform client 2026-10-10 15:16:32 +09:00