Fix incorrect function name.

Refs #6107
This commit is contained in:
Gunnar Beutner 2014-05-08 13:15:08 +02:00
parent e322cc5086
commit 5678fe750c
1 changed files with 1 additions and 1 deletions

View File

@ -969,7 +969,7 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D
String ApiEvents::GetVirtualHostName(const Host::Ptr& host)
{
String host_name = GetVirtualHostName(host);
String host_name = host->GetName();
if (host_name == "localhost")
host_name = Endpoint::GetLocalEndpoint()->GetName();
return host_name;