summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/EndpointI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-08-21 13:11:48 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-08-21 13:11:48 +0000
commit88454251d3356793b4f1cc6d3f07929280a012bd (patch)
tree84a663bceb5ecd363c294418ccd5fe6ef3d977c3 /cpp/src/IceSSL/EndpointI.cpp
parentTry loopback in client when no -h (diff)
downloadice-88454251d3356793b4f1cc6d3f07929280a012bd.tar.bz2
ice-88454251d3356793b4f1cc6d3f07929280a012bd.tar.xz
ice-88454251d3356793b4f1cc6d3f07929280a012bd.zip
Try loopback in client if no -h
Diffstat (limited to 'cpp/src/IceSSL/EndpointI.cpp')
-rw-r--r--cpp/src/IceSSL/EndpointI.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpp/src/IceSSL/EndpointI.cpp b/cpp/src/IceSSL/EndpointI.cpp
index c9db6194eb8..b2db179fa0f 100644
--- a/cpp/src/IceSSL/EndpointI.cpp
+++ b/cpp/src/IceSSL/EndpointI.cpp
@@ -306,7 +306,7 @@ IceSSL::EndpointI::acceptor(IceInternal::EndpointIPtr& endp, const string& adapt
}
vector<IceInternal::EndpointIPtr>
-IceSSL::EndpointI::expand(bool includeLoopback) const
+IceSSL::EndpointI::expand() const
{
vector<IceInternal::EndpointIPtr> endps;
if(_host == "0.0.0.0")
@@ -314,11 +314,8 @@ IceSSL::EndpointI::expand(bool includeLoopback) const
vector<string> hosts = IceInternal::getLocalHosts();
for(unsigned int i = 0; i < hosts.size(); ++i)
{
- if(includeLoopback || hosts.size() == 1 || hosts[i] != "127.0.0.1")
- {
- endps.push_back(new EndpointI(_instance, hosts[i], _port, _timeout, _connectionId, _compress,
- hosts.size() == 1 || hosts[i] != "127.0.0.1"));
- }
+ endps.push_back(new EndpointI(_instance, hosts[i], _port, _timeout, _connectionId, _compress,
+ hosts.size() == 1 || hosts[i] != "127.0.0.1"));
}
}
else