summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-01 17:12:52 +0100
committerSimon Rettberg2017-12-01 17:12:52 +0100
commitedb818aa42c9bb2e9c5ae437a16aa5f168c0c1a7 (patch)
treed5b2cd33e79a49f4a90ea608abf8cb789dd1091c /src/server
parent[client] Use polling when checking whether to hide the bar (diff)
downloadpvs2-edb818aa42c9bb2e9c5ae437a16aa5f168c0c1a7.tar.gz
pvs2-edb818aa42c9bb2e9c5ae437a16aa5f168c0c1a7.tar.xz
pvs2-edb818aa42c9bb2e9c5ae437a16aa5f168c0c1a7.zip
Fix connection problems qith Qt5 (again)
Diffstat (limited to 'src/server')
-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 95ad5e4..a13800b 100644
--- a/src/server/net/discoverylistener.cpp
+++ b/src/server/net/discoverylistener.cpp
@@ -32,7 +32,7 @@
DiscoveryListener::DiscoveryListener() :
_socket(this), _counterResetPos(0)
{
- if (!_socket.bind(SERVICE_DISCOVERY_PORT))
+ if (!_socket.bind(QHostAddress::AnyIPv4, SERVICE_DISCOVERY_PORT))
qFatal("Could not bind to service discovery port %d", (int)SERVICE_DISCOVERY_PORT);
connect(&_socket, SIGNAL(readyRead()), this, SLOT(onReadyRead()));
for (int i = 0; i < SD_PACKET_TABLE_SIZE; ++i)