From 18f810a1eae1bd872c1ac6e405743136cee9e47e Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 22 May 2025 14:59:19 +0200 Subject: [PATCH] For the same zone, call ApiListener::UpdateObjectAuthority() in icinga::Hello after setting remote capabilities. They'll become important for teamwork in a zone. --- lib/remote/apilistener.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index db024c987..98b5c4968 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -1794,6 +1794,10 @@ Value ApiListener::HelloAPIHandler(const MessageOrigin::Ptr& origin, const Dicti endpoint->SetIcingaVersion(nodeVersion); endpoint->SetCapabilities((double)params->Get("capabilities")); + if (endpoint->GetZone() == Zone::GetLocalZone()) { + UpdateObjectAuthority(); + } + if (nodeVersion == 0u) { nodeVersion = 21200; }