2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00

Fix protocol version comparison

This commit is contained in:
Albert Vaca Cintora 2025-02-01 11:20:19 +01:00
parent 68a0b73e9c
commit f8a2d2da03

View File

@ -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();