diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-08-09 10:40:44 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-09-01 12:24:49 (GMT) |
commit | 6e28216b0b64ca69b26d4a3dc356fd36800e4894 (patch) | |
tree | 29d763fc3bfd96424bd333117e0b5d35298c26cb /src/network | |
parent | 44368b4174eedc9a2eebd9f67cf0e96f42b67188 (diff) | |
download | Qt-6e28216b0b64ca69b26d4a3dc356fd36800e4894.zip Qt-6e28216b0b64ca69b26d4a3dc356fd36800e4894.tar.gz Qt-6e28216b0b64ca69b26d4a3dc356fd36800e4894.tar.bz2 |
Don't ignore interfaces that cannot multicast when querying the mcast iface
If getsockopt() returns an address for an interface that doesn't advertise
that it can multicast, don't second guess the OS, just return the iface.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/socket/qnativesocketengine_unix.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp index 360dab5..aa55009 100644 --- a/src/network/socket/qnativesocketengine_unix.cpp +++ b/src/network/socket/qnativesocketengine_unix.cpp @@ -753,8 +753,6 @@ QNetworkInterface QNativeSocketEnginePrivate::nativeMulticastInterface() const QList<QNetworkInterface> ifaces = QNetworkInterface::allInterfaces(); for (int i = 0; i < ifaces.count(); ++i) { const QNetworkInterface &iface = ifaces.at(i); - if (!(iface.flags() & QNetworkInterface::CanMulticast)) - continue; QList<QNetworkAddressEntry> entries = iface.addressEntries(); for (int j = 0; j < entries.count(); ++j) { const QNetworkAddressEntry &entry = entries.at(j); |