mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
[test] Show failing IP address
This commit is contained in:
@@ -123,7 +123,10 @@ private slots:
|
|||||||
ipv6[14] = 0xff & (ipv4 >> 8);
|
ipv6[14] = 0xff & (ipv4 >> 8);
|
||||||
ipv6[15] = 0xff & ipv4;
|
ipv6[15] = 0xff & ipv4;
|
||||||
QHostAddress ipv6Addr( ipv6 );
|
QHostAddress ipv6Addr( ipv6 );
|
||||||
QVERIFY( servent->isIPWhitelisted( ipv6Addr ) );
|
QString error = QString( "%1 converted to IPv6 %2" )
|
||||||
|
.arg( addr.toString() ).arg( ipv6Addr.toString() );
|
||||||
|
QVERIFY2( servent->isIPWhitelisted( ipv6Addr ),
|
||||||
|
error.toLatin1().constData() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user