diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-06-14 10:44:41 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-06-14 10:44:41 -0230 |
commit | 9384d90d200a46c26a22135d4f4e39be78d04ab0 (patch) | |
tree | 301242e7633043ec9225e2732a81037f438da9c4 /cpp/src/Ice/TcpEndpointI.cpp | |
parent | Fixed bug 2254 (diff) | |
download | ice-9384d90d200a46c26a22135d4f4e39be78d04ab0.tar.bz2 ice-9384d90d200a46c26a22135d4f4e39be78d04ab0.tar.xz ice-9384d90d200a46c26a22135d4f4e39be78d04ab0.zip |
No longer necessary to expand enpoints in proxies, use same mechanism as for multihomed hosts.
Added some missing .gitignore files.
Diffstat (limited to 'cpp/src/Ice/TcpEndpointI.cpp')
-rw-r--r-- | cpp/src/Ice/TcpEndpointI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/TcpEndpointI.cpp b/cpp/src/Ice/TcpEndpointI.cpp index 1be75d2fe2f..073ece450a4 100644 --- a/cpp/src/Ice/TcpEndpointI.cpp +++ b/cpp/src/Ice/TcpEndpointI.cpp @@ -311,7 +311,7 @@ IceInternal::TcpEndpointI::acceptor(EndpointIPtr& endp, const string&) const vector<EndpointIPtr> -IceInternal::TcpEndpointI::expand(bool includeLoopback) const +IceInternal::TcpEndpointI::expand() const { vector<EndpointIPtr> endps; if(_host == "0.0.0.0") @@ -319,7 +319,7 @@ IceInternal::TcpEndpointI::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") + if(hosts.size() == 1 || hosts[i] != "127.0.0.1") { endps.push_back(new TcpEndpointI(_instance, hosts[i], _port, _timeout, _connectionId, _compress)); } |