Fix console proxy on XCPng/Xen (#7243)

This commit is contained in:
Nicolas Vazquez 2023-02-17 07:13:46 -03:00 committed by GitHub
parent 597a8030b7
commit 4956648053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -155,7 +155,8 @@ public class NoVncClient {
}
// Proxy that we support RFB 3.3 only
return RfbConstants.RFB_PROTOCOL_VERSION + "\n";
return String.format("%s%s\n", RfbConstants.RFB_PROTOCOL_VERSION_MAJOR,
RfbConstants.VNC_PROTOCOL_VERSION_MINOR_TUNNEL);
}
/**

View File

@ -21,8 +21,8 @@ import java.nio.charset.Charset;
public interface RfbConstants {
public static final String RFB_PROTOCOL_VERSION_MAJOR = "RFB 003.";
// public static final String VNC_PROTOCOL_VERSION_MINOR = "003";
public static final String VNC_PROTOCOL_VERSION_MINOR = "008";
public static final String VNC_PROTOCOL_VERSION_MINOR_TUNNEL = "003";
public static final String RFB_PROTOCOL_VERSION = RFB_PROTOCOL_VERSION_MAJOR + VNC_PROTOCOL_VERSION_MINOR;
/**