Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
664da445
Commit
664da445
authored
Sep 12, 2020
by
Weixuan Xiao
Committed by
Weixuan Xiao
Jul 04, 2021
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
core/backends/lan/lanlinkprovider.cpp
View file @
664da445
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment