mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 22:38:33 +01:00
Servent: Fix IP protocol version distinction
Uwe failed at C&P!
This commit is contained in:
parent
eee50b2f93
commit
46239947f5
@ -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" ) ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user