17 lines
654 B
C#
17 lines
654 B
C#
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;
|
|
}
|