mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Accept Ipv4 or Ipv6
This commit is contained in:
parent
e3bb74ce25
commit
fdca99e57d
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user