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
@@ -20,7 +20,7 @@ void main() {
|
||||
'version': 'test-core',
|
||||
},
|
||||
'peers': [],
|
||||
'routes': [],
|
||||
'nodes': [],
|
||||
},
|
||||
),
|
||||
),
|
||||
@@ -53,13 +53,30 @@ void main() {
|
||||
'tx_bytes_per_second': 512.0,
|
||||
},
|
||||
],
|
||||
'routes': [
|
||||
{'peer_id': 1, 'hostname': 'game-server', 'ipv4': '10.77.0.2'},
|
||||
'nodes': [
|
||||
{
|
||||
'peer_id': 1,
|
||||
'hostname': 'game-server',
|
||||
'ipv4': '10.77.0.2',
|
||||
'path': 'direct',
|
||||
'direct_available': true,
|
||||
'latency_ms': 23.4,
|
||||
'latency_source': 'link_rtt',
|
||||
'metered': true,
|
||||
'rx_bytes': 2048,
|
||||
'tx_bytes': 1024,
|
||||
'rx_bytes_per_second': 1024.0,
|
||||
'tx_bytes_per_second': 512.0,
|
||||
},
|
||||
{
|
||||
'peer_id': 2,
|
||||
'hostname': 'relay-target',
|
||||
'estimated_latency_ms': 89,
|
||||
'next_hop_peer_id': 1,
|
||||
'path': 'relay',
|
||||
'direct_available': false,
|
||||
'latency_ms': 89,
|
||||
'latency_source': 'route_estimate',
|
||||
'metered': false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -85,14 +102,18 @@ void main() {
|
||||
'peers': [
|
||||
{'peer_id': 1, 'direct': true, 'latency_ms': 166.5},
|
||||
],
|
||||
'routes': [
|
||||
'nodes': [
|
||||
{
|
||||
'peer_id': 1,
|
||||
'hostname': 'DIG-US',
|
||||
'next_hop_peer_id': 2,
|
||||
'estimated_latency_ms': 108,
|
||||
'udp_nat_type': 'FullCone',
|
||||
'version': '2.4.5',
|
||||
'path': 'relay',
|
||||
'direct_available': true,
|
||||
'latency_ms': 108,
|
||||
'latency_source': 'route_estimate',
|
||||
'metered': true,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -121,12 +142,17 @@ void main() {
|
||||
'latency_ms': 7.497,
|
||||
},
|
||||
],
|
||||
'routes': [
|
||||
'nodes': [
|
||||
{
|
||||
'peer_id': 3157594741,
|
||||
'hostname': 'Redmi_AX6',
|
||||
'next_hop_peer_id': 3157594741,
|
||||
'estimated_latency_ms': 7,
|
||||
'path': 'direct',
|
||||
'direct_available': true,
|
||||
'hole_punched': true,
|
||||
'latency_ms': 7.497,
|
||||
'latency_source': 'link_rtt',
|
||||
'metered': true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user