mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
e322cc5086
commit
5678fe750c
@ -969,7 +969,7 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D
|
|||||||
|
|
||||||
String ApiEvents::GetVirtualHostName(const Host::Ptr& host)
|
String ApiEvents::GetVirtualHostName(const Host::Ptr& host)
|
||||||
{
|
{
|
||||||
String host_name = GetVirtualHostName(host);
|
String host_name = host->GetName();
|
||||||
if (host_name == "localhost")
|
if (host_name == "localhost")
|
||||||
host_name = Endpoint::GetLocalEndpoint()->GetName();
|
host_name = Endpoint::GetLocalEndpoint()->GetName();
|
||||||
return host_name;
|
return host_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user