Commit 664da445 authored by Weixuan Xiao's avatar Weixuan Xiao Committed by Weixuan Xiao
Browse files

Empty capabilities in identity packet for UDP

To avoid incomplete UDP transmission on macOS
parent ea8ed5c4
Pipeline #68512 passed with stage
in 3 minutes and 59 seconds
......@@ -24,6 +24,7 @@
#include <QSslCipher>
#include <QSslConfiguration>
#include <QSslKey>
#include <QStringList>
#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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment