qt 6.6.0 clean

This commit is contained in:
kleuter
2023-11-01 22:23:55 +01:00
parent 7b5ada15e7
commit 5d8194efa7
1449 changed files with 134276 additions and 31391 deletions

View File

@ -9,6 +9,6 @@ qt_internal_add_test(tst_qnetworkinterface
SOURCES
tst_qnetworkinterface.cpp
LIBRARIES
Qt::Network
Qt::NetworkPrivate
QT_TEST_SERVER_LIST "apache2"
)

View File

@ -12,6 +12,8 @@
#include <qudpsocket.h>
#include "../../../network-settings.h"
#include <private/qtnetwork-config_p.h>
Q_DECLARE_METATYPE(QHostAddress)
class tst_QNetworkInterface : public QObject
@ -49,14 +51,13 @@ tst_QNetworkInterface::~tst_QNetworkInterface()
bool tst_QNetworkInterface::isIPv6Working()
{
// Version without following cannot get IPV6 information
#if !defined(QT_NO_GETIFADDRS) && !defined(QT_NO_IPV6IFNAME)
QUdpSocket socket;
socket.connectToHost(QHostAddress::LocalHostIPv6, 1234);
return socket.state() == QAbstractSocket::ConnectedState || socket.waitForConnected(100);
#else
return false;
#endif
// QNetworkInterface may be unable to detect IPv6 addresses even if they
// are there, due to limitations of the implementation.
if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::Windows ||
QT_CONFIG(linux_netlink) || (QT_CONFIG(getifaddrs) && QT_CONFIG(ipv6ifname))) {
return QtNetworkSettings::hasIPv6();
}
return false;
}
void tst_QNetworkInterface::initTestCase()