summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/TcpTransceiver.cpp')
-rw-r--r--cpp/src/Ice/TcpTransceiver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp
index 4ab90aec42f..d82fafa17ce 100644
--- a/cpp/src/Ice/TcpTransceiver.cpp
+++ b/cpp/src/Ice/TcpTransceiver.cpp
@@ -619,7 +619,8 @@ IceInternal::TcpTransceiver::connect()
#ifndef ICE_USE_IOCP
try
{
- if(doConnect(_fd, _addr))
+ Address addr = _proxy ? _proxy->getAddress() : _addr;
+ if(doConnect(_fd, addr))
{
_state = StateConnected;
_desc = fdToString(_fd, _proxy, _addr, true);