Fix first Tailscale connection fallback in Windows 0.3.14

This commit is contained in:
2026-11-13 12:31:22 +08:00
parent 839434a313
commit cf02204e35
5 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ internal static class TailnetTransportSelfTest
selected = await NodeTransportConnector.ConnectAsync(known,deniedPreference,Start,Stop,Healthy,Route,statuses.Add,()=>tick,CancellationToken.None,
allowKnownEndpoints:true, endpointProbe:(_,_,_)=>Task.FromResult(false));
checks["closed_port_skips_tailnet_start_and_stop"] = !selected && starts.SequenceEqual(new[]{"002.vpn.toplc.cn"}) && stops == beforeStops && probes == 0;
checks["ping_unreachable_status_is_distinct_from_route_failure"] = statuses.Last() == "内网 IP Ping 不通,使用同一节点公网入口";
checks["endpoint_unreachable_status_is_distinct_from_route_failure"] = statuses.Last() == "Tailscale 代理端口不可达,使用同一节点公网入口";
checks["closed_port_sets_node_cooldown"] = !deniedPreference.MayTry(known.Node.Slug,tick+1);
starts.Clear();
selected = await NodeTransportConnector.ConnectAsync(known,deniedPreference,Start,Stop,Healthy,Route,_=>{},()=>tick+1,CancellationToken.None,