1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-14 04:49:43 +01:00

Accept Ipv4 or Ipv6

This commit is contained in:
Hugo Lindström 2019-12-20 18:17:17 +08:00
parent e3bb74ce25
commit fdca99e57d

View File

@ -93,11 +93,8 @@ private slots:
Servent* servent;
listenAllBasic( &servent );
// Check for IPv4 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) );
// Check for IPv6 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
// Check for IPv4/v6 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) || servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
// Verify that all interface addresses are whitelisted.
foreach ( QHostAddress addr, QNetworkInterface::allAddresses() )