nvazquez commented on a change in pull request #3967: noVNC console integration
URL: https://github.com/apache/cloudstack/pull/3967#discussion_r398863880
##########
File path: server/src/main/java/com/cloud/servlet/ConsoleProxyServlet.java
##########
@@ -478,7 +481,12 @@ private String composeConsoleAccessUrl(String rootUrl,
VirtualMachine vm, HostVO
param.setClientTunnelSession(parsedHostInfo.third());
}
- sb.append("/ajax?token=" +
encryptor.encryptObject(ConsoleProxyClientParam.class, param));
+ if (param.getHypervHost() != null ||
!ConsoleProxyManager.NoVncConsoleDefault.value()) {
+ sb.append("/ajax?token=" +
encryptor.encryptObject(ConsoleProxyClientParam.class, param));
+ } else {
+ sb.append("/resource/noVNC/vnc_lite.html?port=" +
ConsoleProxyManager.DEFAULT_NOVNC_PORT + "&token="
Review comment:
Why not using `vnc.html` which provides more functionalities? Briefly tested
invoking it and got this extra functionalities:

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services