mirror of https://github.com/Icinga/icinga2.git
parent
4df2721d4e
commit
8e05f6ce4b
|
@ -70,5 +70,10 @@ bool Zone::IsChildOf(const Zone::Ptr& zone)
|
|||
|
||||
Zone::Ptr Zone::GetLocalZone(void)
|
||||
{
|
||||
return Endpoint::GetLocalEndpoint()->GetZone();
|
||||
Endpoint::Ptr local = Endpoint::GetLocalEndpoint();
|
||||
|
||||
if (!local)
|
||||
return Zone::Ptr();
|
||||
|
||||
return local->GetZone();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue