Add a way to disable UDP broadcasts for testing
This commit is contained in:
parent
9e51b7d814
commit
8c69e48e2f
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ void LanLinkProvider::broadcastToNetwork()
|
||||||
|
|
||||||
void LanLinkProvider::broadcastUdpIdentityPacket()
|
void LanLinkProvider::broadcastUdpIdentityPacket()
|
||||||
{
|
{
|
||||||
|
if (qEnvironmentVariableIsSet("KDECONNECT_DISABLE_UDP_BROADCAST")) {
|
||||||
|
qWarning() << "Not broadcasting UDP because KDECONNECT_DISABLE_UDP_BROADCAST is set";
|
||||||
|
return;
|
||||||
|
}
|
||||||
sendUdpIdentityPacket(getBroadcastAddresses());
|
sendUdpIdentityPacket(getBroadcastAddresses());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue