diff --git a/mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp b/mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp
index 609dcd4..ccb7e2f 100644
a
|
b
|
qint64 MMulticastSocketDevice::writeBlock( |
115 | 115 | if (addr == "127.0.0.1") |
116 | 116 | continue; // skip localhost address |
117 | 117 | |
118 | | struct in_addr interface_addr; |
119 | | inet_pton(AF_INET, addr.toAscii().constData(), |
120 | | (char*)&interface_addr); |
| 118 | uint32_t interface_addr = (*it).toIPv4Address(); |
121 | 119 | setsockopt(socket(), IPPROTO_IP, IP_MULTICAST_IF, |
122 | 120 | &interface_addr, sizeof(interface_addr)); |
123 | 121 | retx = MSocketDevice::writeBlock(data, len, host, port); |