From 0e5c69368717f24bcdbcee10dac69b8f975e2eb8 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 7 Jun 2020 00:27:36 -0700 Subject: [PATCH] Fixed noVNC when running on non-standard HTTPS port. --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index 02c838e0..74fe0484 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2197,7 +2197,7 @@ } } if (message.tag == 'novnc') { - var vncurl = window.location.origin + domainUrl + 'novnc/vnc.html?ws=wss%3A%2F%2F' + window.location.hostname + '%2Fmeshrelay.ashx%3Fauth%3D' + message.cookie + '&show_dot=1'; + var vncurl = window.location.origin + domainUrl + 'novnc/vnc.html?ws=wss%3A%2F%2F' + window.location.host + '%2Fmeshrelay.ashx%3Fauth%3D' + message.cookie + '&show_dot=1'; var node = getNodeFromId(message.nodeid); if (node != null) { vncurl += '&name=' + encodeURIComponentEx(node.name); } var newWindow = window.open(vncurl, 'mcnovnc/' + message.nodeid);