summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpConnector.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-06-14 10:44:41 -0230
committerDwayne Boone <dwayne@zeroc.com>2007-06-14 10:44:41 -0230
commit9384d90d200a46c26a22135d4f4e39be78d04ab0 (patch)
tree301242e7633043ec9225e2732a81037f438da9c4 /cpp/src/Ice/TcpConnector.cpp
parentFixed bug 2254 (diff)
downloadice-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/TcpConnector.cpp')
-rw-r--r--cpp/src/Ice/TcpConnector.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/TcpConnector.cpp b/cpp/src/Ice/TcpConnector.cpp
index 007824a952b..5979914fedd 100644
--- a/cpp/src/Ice/TcpConnector.cpp
+++ b/cpp/src/Ice/TcpConnector.cpp
@@ -122,7 +122,14 @@ bool
IceInternal::TcpConnector::equivalent(const string& host, int port) const
{
struct sockaddr_in addr;
- getAddress(host, port, addr);
+ try
+ {
+ getAddress(host, port, addr);
+ }
+ catch(const DNSException&)
+ {
+ return false;
+ }
return compareAddress(addr, _addr) == 0;
}