Fix wrong connection log message for global zones

fixes #10377
This commit is contained in:
Michael Friedrich 2015-10-15 17:15:19 +02:00
parent 934fb64b9e
commit 10c306673d
1 changed files with 4 additions and 0 deletions

View File

@ -441,6 +441,10 @@ void ApiListener::ApiTimerHandler(void)
Zone::Ptr my_zone = Zone::GetLocalZone();
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 */
if (my_zone != zone && my_zone != zone->GetParent() && zone != my_zone->GetParent()) {
Log(LogDebug, "ApiListener")