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()) {
|
if (param.getHypervHost() != null || !ConsoleProxyManager.NoVncConsoleDefault.value()) {
|
||||||
sb.append("/ajax?token=" + encryptor.encryptObject(ConsoleProxyClientParam.class, param));
|
sb.append("/ajax?token=" + encryptor.encryptObject(ConsoleProxyClientParam.class, param));
|
||||||
} else {
|
} else {
|
||||||
sb.append("/resource/noVNC/vnc.html?port=" + ConsoleProxyManager.DEFAULT_NOVNC_PORT + "&token="
|
sb.append("/resource/noVNC/vnc.html")
|
||||||
+ encryptor.encryptObject(ConsoleProxyClientParam.class, param));
|
.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
|
// 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">
|
<source src="app/sounds/bell.mp3" type="audio/mpeg">
|
||||||
</audio>
|
</audio>
|
||||||
</body>
|
</body>
|
||||||
<script type="application/javascript">
|
|
||||||
window.onload = function() {
|
|
||||||
document.getElementById("noVNC_connect_button").click();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user