Fixed broadcast

This commit is contained in:
Albert Vaca 2015-12-17 08:59:08 -08:00
parent f5404ea11b
commit 7ed012e4a5

View file

@ -114,7 +114,7 @@ void LanLinkProvider::onNetworkChange()
NetworkPackage np("");
NetworkPackage::createIdentityPackage(&np);
np.set("tcpPort", mTcpPort);
mUdpSocket.writeDatagram(np.serialize(), mTestMode ? QHostAddress::LocalHost : QHostAddress::Any, port);
mUdpSocket.writeDatagram(np.serialize(), mTestMode ? QHostAddress::LocalHost : QHostAddress("255.255.255.255"), port);
}
//I'm the existing device, a new device is kindly introducing itself.