diff options
author | Simon Rettberg | 2018-07-24 11:32:56 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-24 11:32:56 +0200 |
commit | 03483831d5c92ac9f7a41bb117c32c30a38f32df (patch) | |
tree | 99b754bbd8f50b49728761aa864d9e9abfecf68c /src | |
parent | [client] Rewrite thread sync for VNC yet again (diff) | |
download | pvs2-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.cpp | 2 |
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) |