Fix: replicated & local endpoints should not have local: prefix.

This commit is contained in:
Gunnar Beutner 2013-01-18 10:37:22 +01:00
parent 51bad2d2a6
commit 9074a384fd
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ Endpoint::Ptr Endpoint::MakeEndpoint(const String& name, bool replicated, bool l
{
ConfigItemBuilder::Ptr endpointConfig = boost::make_shared<ConfigItemBuilder>();
endpointConfig->SetType("Endpoint");
endpointConfig->SetName(local ? "local:" + name : name);
endpointConfig->SetName((!replicated && local) ? "local:" + name : name);
endpointConfig->SetLocal(!replicated);
endpointConfig->AddExpression("local", OperatorSet, local);