Created
September 14, 2023 20:55
-
-
Save andronics/1cc7bda3b3929a1aa8fec51374dc6fdb to your computer and use it in GitHub Desktop.
FileFlows License Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Server/Helpers/LicenseHelper.cs b/Server/Helpers/LicenseHelper.cs | |
index 0105b902..858a0b3e 100644 | |
--- a/Server/Helpers/LicenseHelper.cs | |
+++ b/Server/Helpers/LicenseHelper.cs | |
@@ -68,17 +68,24 @@ class LicenseHelper | |
internal static License? FromCode(string code) | |
{ | |
- if (string.IsNullOrWhiteSpace(code)) | |
- return null; | |
- try | |
- { | |
- string decrypted = Decrypt(LicenseResponse_DecryptionKey, code); | |
- return JsonSerializer.Deserialize<License>(decrypted); | |
- } | |
- catch (Exception) | |
+ | |
+ return new License | |
{ | |
- return null; | |
- } | |
+ Status = LicenseStatus.Valid, | |
+ ExpirationDateUtc = new DateTime(2099, 12, 31, 23, 59, 0, 0), | |
+ ProcessingNodes = 1024 * 1024 * 1024, | |
+ Files = 1024 * 1024 * 1024, | |
+ Flags = ( | |
+ LicenseFlags.ExternalDatabase | |
+ | LicenseFlags.AutoUpdates | |
+ | LicenseFlags.Dashboards | |
+ | LicenseFlags.Revisions | |
+ | LicenseFlags.Tasks | |
+ | LicenseFlags.Webhooks | |
+ | LicenseFlags.ProcessingOrder | |
+ ) | |
+ }; | |
+ | |
} | |
private static DateTime LastUpdate = DateTime.MinValue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you happen to have an updated version of this please?