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);