tst_QTcpServer::linkLocal fix for Windows Xp
Do not try to connect to the Terdo Tunneling Pseudo-Interface as this will fail for Windows Xp. Change-Id: I6dcd8369ba1e8642224cd4ac53f4032ed46d050d Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
parent
5dc9036e18
commit
7a0b8d580d
@ -885,6 +885,9 @@ void tst_QTcpServer::linkLocal()
|
||||
//Windows preallocates link local addresses to interfaces that are down.
|
||||
//These may or may not work depending on network driver (they do not work for the Bluetooth PAN driver)
|
||||
if (iface.flags() & QNetworkInterface::IsUp) {
|
||||
// Do not connect to the Teredo Tunneling interface on Windows Xp.
|
||||
if (iface.humanReadableName() == QString("Teredo Tunneling Pseudo-Interface"))
|
||||
continue;
|
||||
foreach (QNetworkAddressEntry addressEntry, iface.addressEntries()) {
|
||||
QHostAddress addr = addressEntry.ip();
|
||||
if (addr.isInSubnet(localMaskv4, 16)) {
|
||||
|
Loading…
Reference in New Issue
Block a user