Windows 0.3.1 clean monitor source delta; no private history or other platform changes

This commit is contained in:
2026-10-27 02:00:33 +00:00
parent 366b3c5c9a
commit 1cf54a46e4
40 changed files with 983 additions and 206 deletions
+4 -4
View File
@@ -26,9 +26,9 @@ internal sealed class XrayManager : IDisposable, IAsyncDisposable, IHandoverRunt
private readonly string _xrayDirectory = Path.Combine(AppContext.BaseDirectory, "xray");
private string? _baseConfigJson;
private string? _tailnetFallbackConfigJson;
// Retain only the authenticated in-memory alternative. A physical-network
// recovery already has to restart the core, so it can recheck the overlay
// instead of permanently retaining an earlier public fallback.
// Retain the authenticated alternative for compatibility/identity checks.
// A public fallback is sticky: automatic physical-network recovery must
// never promote it to this cached internal alternative.
private string? _preferredTailnetConfigJson;
private string? _tailnetInterfaceName;
internal bool UsesTailnet => _baseConfigJson is not null && TailnetTransport.Address(_baseConfigJson) is not null;
@@ -387,7 +387,7 @@ internal sealed class XrayManager : IDisposable, IAsyncDisposable, IHandoverRunt
{
try
{
var addresses = await Dns.GetHostAddressesAsync("vpn.toplc.cn", cancellationToken);
var addresses = await Dns.GetHostAddressesAsync("vpn.example.invalid", cancellationToken);
if (addresses.Any(address => address.AddressFamily == AddressFamily.InterNetwork))
{
AppPaths.WriteLog($"Windows DNS 已就绪({started.ElapsedMilliseconds} ms)。");