diff --git a/src/tests/TestServent.h b/src/tests/TestServent.h index b0bf27c0f..5199ccb4d 100644 --- a/src/tests/TestServent.h +++ b/src/tests/TestServent.h @@ -19,6 +19,7 @@ #ifndef TOMAHAWK_TESTDATABASE_H #define TOMAHAWK_TESTDATABASE_H +#include #include #include "network/Servent.h" @@ -102,6 +103,12 @@ private slots: // Check for IPv6 localhost QVERIFY( servent->isIPWhitelisted( QHostAddress::LocalHostIPv6 ) ); + // Verify that all interface addresses are whitelisted. + foreach ( QHostAddress addr, QNetworkInterface::allAddresses() ) + { + QVERIFY( servent->isIPWhitelisted( addr ) ); + } + delete servent; } };