From 28418d88f2d912c17393f2168a044a377f9b6040 Mon Sep 17 00:00:00 2001 From: Artem Los Date: Mon, 14 Nov 2022 15:44:37 +0100 Subject: [PATCH] Hide expired floating devices from GetKey --- LicenseServer/Helpers.cs | 2 +- LicenseServer/Program.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LicenseServer/Helpers.cs b/LicenseServer/Helpers.cs index 3025602..a49b015 100644 --- a/LicenseServer/Helpers.cs +++ b/LicenseServer/Helpers.cs @@ -89,7 +89,7 @@ public static string ProcessActivateRequest(byte[] stream, Dictionary 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."; } diff --git a/LicenseServer/Program.cs b/LicenseServer/Program.cs index 7d36366..660362b 100644 --- a/LicenseServer/Program.cs +++ b/LicenseServer/Program.cs @@ -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/ * */ @@ -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";