summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rwxr-xr-xcpp/src/Ice/UdpTransceiver.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp
index b4f5520c184..9d32c38938e 100755
--- a/cpp/src/Ice/UdpTransceiver.cpp
+++ b/cpp/src/Ice/UdpTransceiver.cpp
@@ -771,11 +771,14 @@ IceInternal::UdpTransceiver::toDetailedString() const
{
ostringstream os;
os << toString();
- string addr = isAddressValid(_mcastAddr) ? _mcastInterface : inetAddrToString(_addr);
- vector<string> intfs = getHostsForEndpointExpand(addr, _instance->protocolSupport(), true);
- if(isAddressValid(_mcastAddr) && intfs.empty())
+ vector<string> intfs;
+ if(isAddressValid(_mcastAddr))
+ {
+ intfs = getInterfacesForMulticast(_mcastInterface, _mcastAddr);
+ }
+ else
{
- intfs.push_back(_mcastInterface);
+ intfs = getHostsForEndpointExpand(inetAddrToString(_addr), _instance->protocolSupport(), true);
}
if(!intfs.empty())
{