Publish Zonghengjia Windows 0.4.1 client source
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user