From e4e51d35281142f7dbf9af78404607d0f00234e2 Mon Sep 17 00:00:00 2001 From: pdlan Date: Sat, 3 Sep 2022 11:18:36 -0400 Subject: Fix protocol version handshake --- java/com/tigervnc/rfb/CConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') diff --git a/java/com/tigervnc/rfb/CConnection.java b/java/com/tigervnc/rfb/CConnection.java index e62f8517..e0e669d8 100644 --- a/java/com/tigervnc/rfb/CConnection.java +++ b/java/com/tigervnc/rfb/CConnection.java @@ -197,7 +197,7 @@ abstract public class CConnection extends CMsgHandler { verStr.clear(); verStr.put(String.format("RFB %03d.%03d\n", - majorVersion, minorVersion).getBytes()).flip(); + server.majorVersion, server.minorVersion).getBytes()).flip(); os.writeBytes(verStr.array(), 0, 12); os.flush(); -- cgit v1.2.3