diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-08-21 13:11:48 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-08-21 13:11:48 +0000 |
commit | 88454251d3356793b4f1cc6d3f07929280a012bd (patch) | |
tree | 84a663bceb5ecd363c294418ccd5fe6ef3d977c3 /cppe/src/TcpTransport/TcpEndpoint.cpp | |
parent | Try loopback in client when no -h (diff) | |
download | ice-88454251d3356793b4f1cc6d3f07929280a012bd.tar.bz2 ice-88454251d3356793b4f1cc6d3f07929280a012bd.tar.xz ice-88454251d3356793b4f1cc6d3f07929280a012bd.zip |
Try loopback in client if no -h
Diffstat (limited to 'cppe/src/TcpTransport/TcpEndpoint.cpp')
-rw-r--r-- | cppe/src/TcpTransport/TcpEndpoint.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cppe/src/TcpTransport/TcpEndpoint.cpp b/cppe/src/TcpTransport/TcpEndpoint.cpp index feba1a5daab..50adcb6a6e0 100644 --- a/cppe/src/TcpTransport/TcpEndpoint.cpp +++ b/cppe/src/TcpTransport/TcpEndpoint.cpp @@ -349,7 +349,7 @@ IceInternal::TcpEndpoint::operator<(const Endpoint& r) const } vector<EndpointPtr> -IceInternal::TcpEndpoint::expand(bool includeLoopback) const +IceInternal::TcpEndpoint::expand() const { vector<EndpointPtr> endps; if(_host == "0.0.0.0") @@ -357,11 +357,8 @@ IceInternal::TcpEndpoint::expand(bool includeLoopback) const vector<string> hosts = 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 TcpEndpoint(_instance, hosts[i], _port, _timeout, - hosts.size() == 1 || hosts[i] != "127.0.0.1")); - } + endps.push_back(new TcpEndpoint(_instance, hosts[i], _port, _timeout, + hosts.size() == 1 || hosts[i] != "127.0.0.1")); } } else |