diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 7691419e3..c2d7f2fd0 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include "daemon.h" #include "landevicelink.h" @@ -143,6 +144,11 @@ void LanLinkProvider::broadcastToNetwork() NetworkPacket np; NetworkPacket::createIdentityPacket(&np); np.set(QStringLiteral("tcpPort"), m_tcpPort); +#ifdef Q_OS_MAC + //On macOS, remove capacitilities to avoid incomplete transmission of too large UDP packet + np.set(QStringLiteral("incomingCapabilities"), QStringList()); + np.set(QStringLiteral("outgoingCapabilities"), QStringList()); +#endif #ifdef Q_OS_WIN //On Windows we need to broadcast from every local IP address to reach all networks