summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/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 /cppe/src/IceE/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 'cppe/src/IceE/ReferenceFactory.cpp')
-rw-r--r--cppe/src/IceE/ReferenceFactory.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cppe/src/IceE/ReferenceFactory.cpp b/cppe/src/IceE/ReferenceFactory.cpp
index f35ae9b0528..729a3736603 100644
--- a/cppe/src/IceE/ReferenceFactory.cpp
+++ b/cppe/src/IceE/ReferenceFactory.cpp
@@ -11,6 +11,7 @@
#include <IceE/LocalException.h>
#include <IceE/Instance.h>
#include <IceE/IdentityUtil.h>
+#include <IceE/Endpoint.h>
#include <IceE/EndpointFactory.h>
#ifdef ICEE_HAS_ROUTER
# include <IceE/RouterInfo.h>
@@ -461,10 +462,11 @@ IceInternal::ReferenceFactory::create(const string& str)
}
string es = s.substr(beg, end - beg);
- EndpointPtr endp = _instance->endpointFactory()->create(es, false);
+ EndpointPtr endp = _instance->endpointFactory()->create(es);
if(endp != 0)
{
- endpoints.push_back(endp);
+ vector<EndpointPtr> endps = endp->expand(false);
+ endpoints.insert(endpoints.end(), endps.begin(), endps.end());
}
else
{