Commit 979fe687 by Bach Dániel Committed by Guba Sándor

dashboard: fix vnc port

parent 93bbcf85
...@@ -55,8 +55,12 @@ ...@@ -55,8 +55,12 @@
WebUtil.init_logging('warn'); WebUtil.init_logging('warn');
host = window.location.hostname; host = window.location.hostname;
port = window.location.port == ""?"443":window.location.port ; if (window.location.port == 8080) {
password = 'autogiro'; port = 9999;
} else {
port = window.location.port == "" ? "443" : window.location.port;
}
password = '';
path = 'vnc/?d={{ vnc_url }}'; path = 'vnc/?d={{ vnc_url }}';
rfb = new RFB({'target': $D('noVNC_canvas'), rfb = new RFB({'target': $D('noVNC_canvas'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment