[Hotfix] reuse local SSDP address (Issue #1324)

This commit is contained in:
Markus 2021-09-07 17:50:51 +02:00 committed by GitHub
parent b9d5178e55
commit 8fb3d76b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ void SSDPServer::initServer()
bool SSDPServer::start() bool SSDPServer::start()
{ {
if(!_running && _udpSocket->bind(QHostAddress::AnyIPv4, SSDP_PORT, QAbstractSocket::ShareAddress)) if(!_running && _udpSocket->bind(QHostAddress::AnyIPv4, SSDP_PORT, QUdpSocket::ReuseAddressHint | QUdpSocket::ShareAddress))
{ {
_udpSocket->joinMulticastGroup(SSDP_ADDR); _udpSocket->joinMulticastGroup(SSDP_ADDR);
_running = true; _running = true;