Publish Zonghengjia Windows 0.4.1 client source

This commit is contained in:
2026-11-30 13:57:46 +08:00
parent 7a00f97910
commit 859a1dec5e
16 changed files with 307 additions and 23 deletions
+4 -4
View File
@@ -556,10 +556,9 @@ internal sealed partial class MainForm : Form
candidateStarted = true;
replacementStarted = true;
await _xray.StartAsync(runtimeConfig, route.Id, candidate.Slug, connectionToken);
if (!await _xray.CheckProxyHealthAsync(connectionToken))
var proxyHealthy = await _xray.CheckProxyHealthAsync(connectionToken);
if (!ConnectionStartupPolicy.Accept(proxyHealthy, businessHealthy: false))
throw new IOException("默认公网入口代理出口验证失败。");
if (!await _xray.CheckHealthAsync(connectionToken))
throw new IOException("默认公网入口已建立,但当前代理模式的业务路径验证失败。");
connectedTailnet = false;
connectionToken.ThrowIfCancellationRequested();
if (attempt.IsPrivate && candidateResponse.ConfigExpiresAt <= DateTimeOffset.UtcNow)
@@ -609,7 +608,8 @@ internal sealed partial class MainForm : Form
UpdateConnectedTransportPresentation(connectedTailnet);
_handover.Reset();
_currentNodeLabel.Text = _currentNodeName;
_connectionHealth.BeginCore(Environment.TickCount64);
_connectionHealth.BeginCore(Environment.TickCount64,
ConnectionStartupPolicy.InitialHealthGraceMilliseconds(route.Id));
_activeRouteModeId = route.Id;
SetConnectionState(true, "已安全连接", route.Name);
_notifyIcon.Text = "纵横家 · 已连接";