From e5021bb912b3e44c92961bc9ef83929a8fe2b21f Mon Sep 17 00:00:00 2001 From: Adam Comerford Date: Sun, 26 Apr 2026 02:21:45 +0100 Subject: [PATCH] Fix ClusterApiToken not persisted on secondary after initJoin --- DnsServerCore/Auth/AuthManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DnsServerCore/Auth/AuthManager.cs b/DnsServerCore/Auth/AuthManager.cs index b407c45c3..d069c0fd8 100644 --- a/DnsServerCore/Auth/AuthManager.cs +++ b/DnsServerCore/Auth/AuthManager.cs @@ -538,6 +538,7 @@ private void ReadConfigFrom(Stream s, bool isConfigTransfer, out bool restartWeb { switch (existingSession.Value.Type) { + case UserSessionType.ClusterApiToken: case UserSessionType.ApiToken: if (!sessions.ContainsKey(existingSession.Key)) _sessions.TryRemove(existingSession); @@ -550,6 +551,7 @@ private void ReadConfigFrom(Stream s, bool isConfigTransfer, out bool restartWeb { switch (session.Value.Type) { + case UserSessionType.ClusterApiToken: case UserSessionType.ApiToken: _sessions[session.Key] = session.Value; break;