Windows 0.3.3 dashboard layout and speed presentation source delta; no private history or other platform changes
This commit is contained in:
@@ -33,11 +33,12 @@ internal sealed partial class MainForm
|
||||
|
||||
private TailnetReadinessPolicy.Context ReadTailnetReadinessContext() => new(
|
||||
_sessionRevision, _xray.CoreId, _wantConnected,
|
||||
_busy || _handoverOperating || _xray.IsTransitioning || _exiting,
|
||||
_xray.IsRunning, _xray.UsesTailnet, _xray.PreferredTailnetEndpoint is not null);
|
||||
_busy || _healthChecking || _uplinkChecking || _handoverOperating || _handover.Pending || _handover.Settling || _xray.IsTransitioning || _exiting,
|
||||
_xray.IsRunning, _xray.UsesTailnet, !_currentNodeIsPrivateAuxiliary && _xray.TailnetProbeEndpoint is not null);
|
||||
|
||||
// Read-only recovery observation. TCP availability is NOT authenticated
|
||||
// proxy proof and never authorizes terminating a healthy public connection.
|
||||
// The initial connection already tested this address. At ten-minute
|
||||
// intervals repeat only the authorized IP ping; failure on the active path
|
||||
// retries the same node's domain through the normal fresh-grant connector.
|
||||
private async Task CheckTailnetReadinessAsync()
|
||||
{
|
||||
if (_uiOnly || _preview) return;
|
||||
@@ -49,14 +50,24 @@ internal sealed partial class MainForm
|
||||
var reachable = false;
|
||||
try
|
||||
{
|
||||
if (_xray.PreferredTailnetEndpoint is { } endpoint)
|
||||
if (_xray.TailnetProbeEndpoint is { } endpoint)
|
||||
reachable = await TailnetTransport.ProbeEndpointAsync(endpoint.Address, endpoint.Port, _lifetime.Token);
|
||||
}
|
||||
catch (OperationCanceledException) { }
|
||||
catch (Exception) { /* Advisory only; fixed diagnostics below contain no credentials. */ }
|
||||
catch (Exception) { /* Fixed diagnostics below contain no credentials. */ }
|
||||
var result = _tailnetReadiness.Observe(ticket, ReadTailnetReadinessContext(), Environment.TickCount64, reachable);
|
||||
if (_exiting || IsDisposed || Disposing) return;
|
||||
_tailnetReconnectItem.Enabled = _tailnetReadiness.IsReady && !_busy;
|
||||
if (result == TailnetReadinessPolicy.Result.Fallback && _currentNodeSlug is { } slug)
|
||||
{
|
||||
_tailnetPreference.Failed(slug, Environment.TickCount64);
|
||||
_tailnetPreference.CommitDomainFallback();
|
||||
_transportRetryNodeSlug = slug;
|
||||
_connectionHealth.Invalidate();
|
||||
AppPaths.WriteLog(new TransportDiagnostic("periodic_recheck", "ping_failed_same_node_domain_fallback", slug).SafeMessage);
|
||||
await ToggleConnectionAsync(suppressDialogs: true, reconnect: true);
|
||||
return;
|
||||
}
|
||||
if (result == TailnetReadinessPolicy.Result.BecameReady)
|
||||
{
|
||||
AppPaths.WriteLog(new TransportDiagnostic("readiness", "tailnet_endpoint_recovered", _currentNodeSlug ?? "").SafeMessage);
|
||||
|
||||
Reference in New Issue
Block a user