diff options
-rw-r--r-- | netfs/fuse/fuse.cpp | 6 |
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); |