Skip to content

Commit

Permalink
Hide expired floating devices from GetKey
Browse files Browse the repository at this point in the history
  • Loading branch information
artemlos committed Nov 14, 2022
1 parent 3bb9c39 commit 28418d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LicenseServer/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static string ProcessActivateRequest(byte[] stream, Dictionary<LAKey, LAR

if (method == APIMethod.GetKey)
{
FloatingResult(result, null, null, context, 1, activationData.Values.Select(x => new ActivationData { Time = x.Time, FloatingExpires = x.FloatingExpires, FriendlyName = x.FriendlyName, IP = x.IP, Mid = x.Mid }).ToList());
FloatingResult(result, null, null, context, 1, activationData.Values.Where(x => x.FloatingExpires > DateTime.UtcNow).Select(x => new ActivationData { Time = x.Time, FloatingExpires = x.FloatingExpires, FriendlyName = x.FriendlyName, IP = x.IP, Mid = x.Mid }).ToList());
return $"Floating license {licenseKey} returned successfully using a GetKey request. The data from the local license server is used.";
}

Expand Down
4 changes: 2 additions & 2 deletions LicenseServer/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2019 - 2021 Cryptolens AB
* Copyright (c) 2019 - 2022 Cryptolens AB
* To use the license server, a separate subscription is needed.
* Pricing information can be found on the following page: https://cryptolens.io/products/license-server/
* */
Expand Down Expand Up @@ -29,7 +29,7 @@ namespace LicenseServer
{
class Program
{
public const string versionInfo = "v2.7 (2022-04-26)" ;
public const string versionInfo = "v2.8 (2022-11-14)" ;

public const string ServiceName = "license-server";

Expand Down

0 comments on commit 28418d8

Please sign in to comment.