Windows 0.3.0 clean next-generation source delta; no private history or other platform changes

This commit is contained in:
2026-10-22 05:43:39 +00:00
parent ac650ed51d
commit 366b3c5c9a
31 changed files with 2036 additions and 323 deletions
+11
View File
@@ -0,0 +1,11 @@
namespace UCVL.VPNPlus;
// A reused account/token must not accept a response from an earlier login.
// No credentials or session identifiers are persisted by this predicate.
internal static class SessionOperationFence
{
internal static bool IsCurrent(long expectedRevision, long currentRevision,
string? expectedToken, string? currentToken, bool exiting) => !exiting
&& expectedRevision == currentRevision && !string.IsNullOrWhiteSpace(expectedToken)
&& string.Equals(expectedToken, currentToken, StringComparison.Ordinal);
}