summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ReferenceFactory.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-02-13 17:53:37 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-02-13 17:53:37 +0000
commit966060d3a694438bc977ff5be79e33c77ace765a (patch)
tree78b9e96a2ac9a94e7379f9f4b5ce1c67b6a941d0 /cpp/src/Ice/ReferenceFactory.cpp
parentFix (diff)
downloadice-966060d3a694438bc977ff5be79e33c77ace765a.tar.bz2
ice-966060d3a694438bc977ff5be79e33c77ace765a.tar.xz
ice-966060d3a694438bc977ff5be79e33c77ace765a.zip
Bug 804 - no endpoint in reference means try all local interfaces
Diffstat (limited to 'cpp/src/Ice/ReferenceFactory.cpp')
-rw-r--r--cpp/src/Ice/ReferenceFactory.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Ice/ReferenceFactory.cpp b/cpp/src/Ice/ReferenceFactory.cpp
index 94baac6b428..102c75b7559 100644
--- a/cpp/src/Ice/ReferenceFactory.cpp
+++ b/cpp/src/Ice/ReferenceFactory.cpp
@@ -12,7 +12,7 @@
#include <Ice/LocalException.h>
#include <Ice/Instance.h>
#include <Ice/IdentityUtil.h>
-#include <Ice/Endpoint.h>
+#include <Ice/EndpointI.h>
#include <Ice/EndpointFactoryManager.h>
#include <Ice/RouterInfo.h>
#include <Ice/LocatorInfo.h>
@@ -435,10 +435,11 @@ IceInternal::ReferenceFactory::create(const string& str)
}
string es = s.substr(beg, end - beg);
- EndpointIPtr endp = _instance->endpointFactoryManager()->create(es, false);
+ EndpointIPtr endp = _instance->endpointFactoryManager()->create(es);
if(endp != 0)
{
- endpoints.push_back(endp);
+ vector<EndpointIPtr> endps = endp->expand(false);
+ endpoints.insert(endpoints.end(), endps.begin(), endps.end());
}
else
{