[Hotfix] reuse local SSDP address (Issue #1324)
This commit is contained in:
parent
b9d5178e55
commit
8fb3d76b9c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue