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
+16
View File
@@ -0,0 +1,16 @@
namespace UCVL.VPNPlus;
// Initial connection acceptance is transport evidence, not a race against the
// smart-routing learner. Business-site probes continue through the established
// health policy after the verified proxy has been kept alive.
internal static class ConnectionStartupPolicy
{
internal static bool Accept(bool proxyHealthy, bool businessHealthy)
{
_ = businessHealthy; // Advisory after startup; never the initial gate.
return proxyHealthy;
}
internal static int InitialHealthGraceMilliseconds(string routeMode) =>
string.Equals(routeMode, "smart", StringComparison.Ordinal) ? 20_000 : 5_000;
}