Windows 0.3.0 clean next-generation source delta; no private history or other platform changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user