Publish reviewed history-free open-source snapshot (2026-10-12)

This commit is contained in:
Zonghengjia Open Source
2026-10-11 23:23:20 +00:00
commit 901f27baf5
301 changed files with 32378 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using System.Text.Json;
namespace UCVL.VPNPlus;
// Opt-in CLI acceptance telemetry from the actual WinForms connection/timer
// path. Contains only lifecycle, node, health and process ID, never account data.
internal static class ConnectionAcceptanceTrace
{
internal static bool Enabled { get; set; }
internal static void Record(string phase, string? node, bool connected, int? coreId, int failures = 0)
{
if (!Enabled) return;
try
{
File.AppendAllText(Path.Combine(AppContext.BaseDirectory, "ui-connection-self-test.jsonl"),
JsonSerializer.Serialize(new { time = DateTimeOffset.Now, phase, node, connected, coreId, failures }) + Environment.NewLine);
}
catch { /* Acceptance reporting cannot interrupt network recovery. */ }
}
}