mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
parent
934fb64b9e
commit
10c306673d
@ -441,6 +441,10 @@ void ApiListener::ApiTimerHandler(void)
|
|||||||
Zone::Ptr my_zone = Zone::GetLocalZone();
|
Zone::Ptr my_zone = Zone::GetLocalZone();
|
||||||
|
|
||||||
BOOST_FOREACH(const Zone::Ptr& zone, ConfigType::GetObjectsByType<Zone>()) {
|
BOOST_FOREACH(const Zone::Ptr& zone, ConfigType::GetObjectsByType<Zone>()) {
|
||||||
|
/* don't connect to global zones */
|
||||||
|
if (zone->GetGlobal())
|
||||||
|
continue;
|
||||||
|
|
||||||
/* only connect to endpoints in a) the same zone b) our parent zone c) immediate child zones */
|
/* only connect to endpoints in a) the same zone b) our parent zone c) immediate child zones */
|
||||||
if (my_zone != zone && my_zone != zone->GetParent() && zone != my_zone->GetParent()) {
|
if (my_zone != zone && my_zone != zone->GetParent() && zone != my_zone->GetParent()) {
|
||||||
Log(LogDebug, "ApiListener")
|
Log(LogDebug, "ApiListener")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user