mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 04:37:36 +02:00
Accept Ipv4 or Ipv6
This commit is contained in:
@@ -93,11 +93,8 @@ private slots:
|
|||||||
Servent* servent;
|
Servent* servent;
|
||||||
listenAllBasic( &servent );
|
listenAllBasic( &servent );
|
||||||
|
|
||||||
// Check for IPv4 localhost
|
// Check for IPv4/v6 localhost
|
||||||
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) );
|
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) || servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
|
||||||
|
|
||||||
// Check for IPv6 localhost
|
|
||||||
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
|
|
||||||
|
|
||||||
// Verify that all interface addresses are whitelisted.
|
// Verify that all interface addresses are whitelisted.
|
||||||
foreach ( QHostAddress addr, QNetworkInterface::allAddresses() )
|
foreach ( QHostAddress addr, QNetworkInterface::allAddresses() )
|
||||||
|
Reference in New Issue
Block a user