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

View File

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