summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-02-14 17:40:45 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-02-14 17:40:45 +0000
commit0e8b29bc0eadae7e7a7ce9a2f072f4abd3576a80 (patch)
tree9b32af742174e7e1c45c638142f36a26adbeee2d
parentDon't assume a volume session was started when terminating (diff)
downloadnetfs-0e8b29bc0eadae7e7a7ce9a2f072f4abd3576a80.tar.bz2
netfs-0e8b29bc0eadae7e7a7ce9a2f072f4abd3576a80.tar.xz
netfs-0e8b29bc0eadae7e7a7ce9a2f072f4abd3576a80.zip
Add all provided endpoints to the service proxy
-rw-r--r--netfs/fuse/fuse.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/netfs/fuse/fuse.cpp b/netfs/fuse/fuse.cpp
index 43a10c4..7f90710 100644
--- a/netfs/fuse/fuse.cpp
+++ b/netfs/fuse/fuse.cpp
@@ -76,9 +76,11 @@ NetFS::FuseApp::connectToService()
if (e == fc->Resources.end()) {
throw std::runtime_error("No such resource: " + resourceName);
}
- const std::string & ep = e->second->Endpoints.front();
- auto proxyAddr = e->second->ServiceIdentity + ":" + ep;
+ auto proxyAddr = e->second->ServiceIdentity;
+ for (const auto & ep : e->second->Endpoints) {
+ proxyAddr += ":" + ep;
+ }
service = NetFS::ServicePrx::checkedCast(ic->stringToProxy(proxyAddr));
if (!service) {
throw std::runtime_error("Invalid service proxy: " + proxyAddr);