Use verified company gateway for authorized Tailscale nodes

This commit is contained in:
UCVL Release
2026-11-16 10:37:17 +08:00
parent eb90ef4042
commit 16ac8227ea
7 changed files with 166 additions and 38 deletions
+2 -3
View File
@@ -63,9 +63,8 @@ internal sealed partial class MainForm
_checkingTailnetReadiness = true;
try
{
if (_xray.TailnetProbeEndpoint is { } endpoint)
reachable = await TailnetEndpointConfirmation.ProbeAsync(
probeToken => TailnetTransport.ProbeEndpointAsync(endpoint.Address, endpoint.Port, probeToken), _lifetime.Token);
reachable = await TailnetEndpointConfirmation.ProbeAsync(
_xray.ProbeCurrentOrPreferredTailnetAsync, _lifetime.Token);
}
catch (OperationCanceledException) when (_lifetime.IsCancellationRequested) { return; }
catch (Exception) { /* Fixed diagnostics below contain no credentials. */ }