]> source.dussan.org Git - tigervnc.git/commitdiff
Fix protocol version handshake 1525/head
authorpdlan <pengdinglan@gmail.com>
Sat, 3 Sep 2022 15:18:36 +0000 (11:18 -0400)
committerpdlan <pengdinglan@gmail.com>
Sat, 3 Sep 2022 15:18:36 +0000 (11:18 -0400)
java/com/tigervnc/rfb/CConnection.java

index e62f8517d37cfc4f8e07238ee9b9af0d227022e5..e0e669d8868e9477552386762380513236e85603 100644 (file)
@@ -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();