diff --git a/src/libtomahawk/network/Servent.cpp b/src/libtomahawk/network/Servent.cpp index ffabb6cd3..0bd3ffa5d 100644 --- a/src/libtomahawk/network/Servent.cpp +++ b/src/libtomahawk/network/Servent.cpp @@ -1384,9 +1384,9 @@ Servent::isIPWhitelisted( QHostAddress ip ) { // Convert to a real IPv4 address and rerun checks quint32 ipv4 = (static_cast(ipv6[12]) << 24) - & (static_cast(ipv6[13]) << 16) - & (static_cast(ipv6[14]) << 8) - & static_cast(ipv6[15]); + | (static_cast(ipv6[13]) << 16) + | (static_cast(ipv6[14]) << 8) + | static_cast(ipv6[15]); QHostAddress addr( ipv4 ); return isIPWhitelisted( addr ); }