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