Add a way to disable UDP broadcasts for testing
This commit is contained in:
parent
34e0128fe9
commit
a04d9480a4
1 changed files with 4 additions and 0 deletions
|
@ -145,6 +145,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