From f8a2d2da03aa3421f273e8eef14c4e1aa57c9160 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sat, 1 Feb 2025 11:20:19 +0100 Subject: [PATCH] Fix protocol version comparison --- src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java b/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java index 63c797a8..f15c5dad 100644 --- a/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java +++ b/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java @@ -236,7 +236,7 @@ public class LanLinkProvider extends BaseLinkProvider { String mode = clientMode ? "client" : "server"; try { NetworkPacket secureIdentityPacket; - if (protocolVersion == 8) { + if (protocolVersion >= 8) { DeviceInfo myDeviceInfo = DeviceHelper.getDeviceInfo(context); NetworkPacket myIdentity = myDeviceInfo.toIdentityPacket(); OutputStream writer = sslSocket.getOutputStream();