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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
29d236f3fe
commit
dc1bfc99d2
@@ -4,6 +4,8 @@ EasyTier 仓库:https://github.com/EasyTier/EasyTier
|
||||
|
||||
vendor/easytier 是固定提交的本地定制快照,来源和修改清单见该目录 MESHPORT.md。基础提交:7af7bdc16a41d64d58743d15023a63b3eed2102c。Cargo.lock 固定传递依赖;build 使用 --locked。
|
||||
|
||||
原生库能力:C ABI 为 v1,Flutter 绑定要求能力修订号(`abi_info.revision`)≥ 2;`MeshPortClient.open` 在打开时检查,旧库(无 `abi_info` 或修订号更低)会以“native library is too old … rebuild meshport-ffi”的 StateError 拒绝。`fromTransport`(Android VpnService、macOS 辅助进程)由各自宿主保证同版本原生库,不做该检查。
|
||||
|
||||
当前本机验证:macOS aarch64、Rust1.99、Flutter3.41.4/Dart3.11.1。
|
||||
|
||||
目标平台:macOS/Linux/Windows/iOS/Android。macOS 原生库和客户端已验证。Android ARM64 原生库、JNI 和 APK 已构建,真机配置加密存储、应用内与系统 VPN TCP/UDP,以及公告子网自动接入和撤销已通过。其他 runner 是脚手架,仍需要目标编译、链接、库加载和真机测试。iOS 使用静态链接,并需要保留导出符号。Android 说明见 android.md。
|
||||
|
||||
Reference in New Issue
Block a user