summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2018-07-24 11:32:56 +0200
committerSimon Rettberg2018-07-24 11:32:56 +0200
commit03483831d5c92ac9f7a41bb117c32c30a38f32df (patch)
tree99b754bbd8f50b49728761aa864d9e9abfecf68c /src
parent[client] Rewrite thread sync for VNC yet again (diff)
downloadpvs2-03483831d5c92ac9f7a41bb117c32c30a38f32df.tar.gz
pvs2-03483831d5c92ac9f7a41bb117c32c30a38f32df.tar.xz
pvs2-03483831d5c92ac9f7a41bb117c32c30a38f32df.zip
[server] Fix logic error
Diffstat (limited to 'src')
-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)