mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Servent: Fix IP protocol version distinction
Uwe failed at C&P!
This commit is contained in:
@@ -274,7 +274,7 @@ Servent::isValidExternalIP( const QHostAddress& addr )
|
|||||||
if ( addr.isInSubnet(QHostAddress::parseSubnet( "224.0.0.0/4" ) ) )
|
if ( addr.isInSubnet(QHostAddress::parseSubnet( "224.0.0.0/4" ) ) )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (addr.protocol() == QAbstractSocket::IPv4Protocol)
|
else if (addr.protocol() == QAbstractSocket::IPv6Protocol)
|
||||||
{
|
{
|
||||||
// "unspecified address"
|
// "unspecified address"
|
||||||
if ( addr.isInSubnet(QHostAddress::parseSubnet( "::/128" ) ) )
|
if ( addr.isInSubnet(QHostAddress::parseSubnet( "::/128" ) ) )
|
||||||
|
Reference in New Issue
Block a user