summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/server/net/discoverylistener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/net/discoverylistener.cpp b/src/server/net/discoverylistener.cpp
index a13800b..978794e 100644
--- a/src/server/net/discoverylistener.cpp
+++ b/src/server/net/discoverylistener.cpp
@@ -66,7 +66,7 @@ static quint16 hash(const QHostAddress& host)
quint32 addr = host.toIPv4Address();
len = 4;
memcpy(data, &addr, len);
- } else if (QAbstractSocket::IPv6Protocol) {
+ } else if (host.protocol() == QAbstractSocket::IPv6Protocol) {
// IPv6
len = 16;
// Fast version (might break with future qt versions)