From 46239947f527316fa07413d3f9c72bc7ee6c576b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Mon, 20 Oct 2014 17:23:34 +0200 Subject: [PATCH] Servent: Fix IP protocol version distinction Uwe failed at C&P! --- src/libtomahawk/network/Servent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/network/Servent.cpp b/src/libtomahawk/network/Servent.cpp index 2be1618a2..3ec755140 100644 --- a/src/libtomahawk/network/Servent.cpp +++ b/src/libtomahawk/network/Servent.cpp @@ -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" ) ) )