aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpdlan <pengdinglan@gmail.com>2022-09-03 11:18:36 -0400
committerpdlan <pengdinglan@gmail.com>2022-09-03 11:18:36 -0400
commite4e51d35281142f7dbf9af78404607d0f00234e2 (patch)
treed963afe1180343f658d892b367adce0b1779dfc0
parent2e683a18339cc404b6685e9005c7ce0e1bff675c (diff)
downloadtigervnc-e4e51d35281142f7dbf9af78404607d0f00234e2.tar.gz
tigervnc-e4e51d35281142f7dbf9af78404607d0f00234e2.zip
Fix protocol version handshake
-rw-r--r--java/com/tigervnc/rfb/CConnection.java2
1 files changed, 1 insertions, 1 deletions
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();