From 9074a384fdec889d63e86ef650157871a43f44cc Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 18 Jan 2013 10:37:22 +0100 Subject: [PATCH] Fix: replicated & local endpoints should not have local: prefix. --- lib/remoting/endpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);