1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 16:02:07 +02:00

[test] Check that localhosts are whitelisted

This commit is contained in:
Uwe L. Korn 2014-08-26 02:20:12 +01:00
parent 88909967ca
commit de1d63a135

View File

@ -90,6 +90,20 @@ private slots:
delete servent;
}
void testWhitelist()
{
Servent* servent;
listenAllBasic( &servent );
// Check for IPv4 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHost ) );
// Check for IPv6 localhost
QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) );
delete servent;
}
};
#endif // TOMAHAWK_TESTDATABASE_H