mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +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" ) ) )
|
||||
return false;
|
||||
}
|
||||
else if (addr.protocol() == QAbstractSocket::IPv4Protocol)
|
||||
else if (addr.protocol() == QAbstractSocket::IPv6Protocol)
|
||||
{
|
||||
// "unspecified address"
|
||||
if ( addr.isInSubnet(QHostAddress::parseSubnet( "::/128" ) ) )
|
||||
|
Reference in New Issue
Block a user