License: running server keeps running until the next restart

The configurable LicenseGraceHours setting is gone. If the master is down or
rejects the key, a running server now only warns and keeps running until the
next restart; a (re)start still works up to 72 h after the last confirmation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 20:45:38 +02:00
co-authored by Claude Opus 5.5
parent 816c538705
commit 1a2431db3a
9 changed files with 23 additions and 57 deletions
+4 -1
View File
@@ -7,10 +7,13 @@ namespace MSCO.Server;
/// <summary>
/// Letzte erfolgreiche Lizenzprüfung beim Master (data/license.json). Ist der Master mal nicht erreichbar oder lehnt
/// den Schlüssel kurz ab (z.B. nach einem Umzug ohne keys.json), läuft bzw. startet der Server damit weiter - bis
/// LicenseGraceHours ohne Bestätigung vergangen sind. Gespeichert wird nur ein Hash des Schlüssels.
/// GraceHours ohne Bestätigung vergangen sind (fest, nicht einstellbar). Gespeichert wird nur ein Hash des Schlüssels.
/// </summary>
public static class LicenseCache
{
/// <summary>So lange startet ein Server ohne Bestätigung des Masters noch (ein laufender läuft bis zum Neustart weiter).</summary>
public static readonly TimeSpan Grace = TimeSpan.FromHours(72);
public sealed class Entry
{
public string KeyHash { get; set; }