diff options
author | pdlan <pengdinglan@gmail.com> | 2022-09-03 11:18:36 -0400 |
---|---|---|
committer | pdlan <pengdinglan@gmail.com> | 2022-09-03 11:18:36 -0400 |
commit | e4e51d35281142f7dbf9af78404607d0f00234e2 (patch) | |
tree | d963afe1180343f658d892b367adce0b1779dfc0 | |
parent | 2e683a18339cc404b6685e9005c7ce0e1bff675c (diff) | |
download | tigervnc-e4e51d35281142f7dbf9af78404607d0f00234e2.tar.gz tigervnc-e4e51d35281142f7dbf9af78404607d0f00234e2.zip |
Fix protocol version handshake
-rw-r--r-- | java/com/tigervnc/rfb/CConnection.java | 2 |
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(); |