diff --git a/app/ui.js b/app/ui.js index 879eafad..2b68d75e 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1081,7 +1081,12 @@ const UI = { if (port) { url += ':' + port; } - url += '/' + path; + + if (path.startsWith("?token")) { + url += '/websockify' + path; + } else { + url += '/' + path; + } UI.rfb = new RFB(document.getElementById('noVNC_container'), url, { shared: UI.getSetting('shared'),