From: Gunnar Beutner Date: Fri, 18 Jan 2013 09:37:22 +0000 (+0100) Subject: Fix: replicated & local endpoints should not have local: prefix. X-Git-Tag: v0.0.2~706 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9074a384fdec889d63e86ef650157871a43f44cc;p=icinga2 Fix: replicated & local endpoints should not have local: prefix. --- diff --git a/lib/remoting/endpoint.cpp b/lib/remoting/endpoint.cpp index b6e89f1f3..278c38e90 100644 --- a/lib/remoting/endpoint.cpp +++ b/lib/remoting/endpoint.cpp @@ -84,7 +84,7 @@ Endpoint::Ptr Endpoint::MakeEndpoint(const String& name, bool replicated, bool l { ConfigItemBuilder::Ptr endpointConfig = boost::make_shared(); endpointConfig->SetType("Endpoint"); - endpointConfig->SetName(local ? "local:" + name : name); + endpointConfig->SetName((!replicated && local) ? "local:" + name : name); endpointConfig->SetLocal(!replicated); endpointConfig->AddExpression("local", OperatorSet, local);