Fix first Tailscale connection fallback in Windows 0.3.14
This commit is contained in:
@@ -40,7 +40,7 @@ internal static class NodeTransportConnector
|
||||
{
|
||||
selected = fallback!;
|
||||
tailnet = false;
|
||||
diagnostic?.Invoke(new("rebind_fallback", "ping_unreachable", ""));
|
||||
diagnostic?.Invoke(new("rebind_fallback", "endpoint_unreachable", ""));
|
||||
}
|
||||
}
|
||||
await start(selected, deadline.Token);
|
||||
@@ -96,9 +96,9 @@ internal static class NodeTransportConnector
|
||||
{
|
||||
try
|
||||
{
|
||||
status("正在 Ping 代理内网 IP(最多 1 秒)");
|
||||
status("正在检测 Tailscale 代理端口(最多 5 秒)");
|
||||
if (!await endpointProbe(TailnetTransport.Address(tailnet)!, TailnetTransport.Port(tailnet), token))
|
||||
throw new IOException("代理内网 IP Ping 不通。");
|
||||
throw new IOException("Tailscale 代理端口不可达。");
|
||||
token.ThrowIfCancellationRequested();
|
||||
}
|
||||
catch (Exception e) when (e is not OperationCanceledException && e is not ClientRuntimeException)
|
||||
@@ -107,7 +107,7 @@ internal static class NodeTransportConnector
|
||||
tailnet = null;
|
||||
reason = "endpoint_unreachable";
|
||||
Report("tailnet_skipped", reason);
|
||||
status("内网 IP Ping 不通,使用同一节点公网入口");
|
||||
status("Tailscale 代理端口不可达,使用同一节点公网入口");
|
||||
}
|
||||
}
|
||||
if (tailnet is not null)
|
||||
|
||||
Reference in New Issue
Block a user