mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
novnc: Fix vm console is not working on firefox if language is not English (#4833)
This commit is contained in:
parent
a291dea26a
commit
4c88021f81
@ -495,8 +495,10 @@ public class ConsoleProxyServlet extends HttpServlet {
|
||||
if (param.getHypervHost() != null || !ConsoleProxyManager.NoVncConsoleDefault.value()) {
|
||||
sb.append("/ajax?token=" + encryptor.encryptObject(ConsoleProxyClientParam.class, param));
|
||||
} else {
|
||||
sb.append("/resource/noVNC/vnc.html?port=" + ConsoleProxyManager.DEFAULT_NOVNC_PORT + "&token="
|
||||
+ encryptor.encryptObject(ConsoleProxyClientParam.class, param));
|
||||
sb.append("/resource/noVNC/vnc.html")
|
||||
.append("?autoconnect=true")
|
||||
.append("&port=" + ConsoleProxyManager.DEFAULT_NOVNC_PORT)
|
||||
.append("&token=" + encryptor.encryptObject(ConsoleProxyClientParam.class, param));
|
||||
}
|
||||
|
||||
// for console access, we need guest OS type to help implement keyboard
|
||||
|
||||
@ -333,9 +333,4 @@
|
||||
<source src="app/sounds/bell.mp3" type="audio/mpeg">
|
||||
</audio>
|
||||
</body>
|
||||
<script type="application/javascript">
|
||||
window.onload = function() {
|
||||
document.getElementById("noVNC_connect_button").click();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user