Fixed QHostAddress address binding for AtmoOrb (#285)

This commit is contained in:
Rick164 2016-11-11 23:30:57 +01:00 committed by brindosch
parent 961770b9da
commit 39593c508a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ LedDeviceAtmoOrb::LedDeviceAtmoOrb(const QJsonObject &deviceConfig)
_groupAddress = QHostAddress(_multicastGroup);
_udpSocket = new QUdpSocket(this);
_udpSocket->bind(QHostAddress::Any, _multiCastGroupPort, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
_udpSocket->bind(QHostAddress::AnyIPv4, _multiCastGroupPort, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
joinedMulticastgroup = _udpSocket->joinMulticastGroup(_groupAddress);
}