1
0
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:
Lorenz Hübschle-Schneider 2014-10-20 17:23:34 +02:00
parent eee50b2f93
commit 46239947f5

View File

@ -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" ) ) )