Permalink
Browse files

Fixed patch to run on port 80.

  • Loading branch information...
1 parent 2b9ee08 commit d0adf28fa660526478d7a98061f0b5357188d5a3 @Licenser Licenser committed Apr 27, 2012
Showing with 8 additions and 7 deletions.
  1. +8 −7 priv/js/application.js
@@ -375,16 +375,17 @@ var ui = new Object();
$D('sendCtrlAltDelButton').onclick = sendCtrlAltDel;
// By default, use the host and port of server that served this file
- host = WebUtil.getQueryVar('host', window.location.hostname);
- port = WebUtil.getQueryVar('port', window.location.port);
+ host = window.location.hostname;
+ port = window.location.port;
+ if (port == "")
+ port = 80;
path = "machines/" + id + "/vnc"
rfb = new RFB({'target': $D('noVNC_canvas'),
- 'encrypt': WebUtil.getQueryVar('encrypt',
- (window.location.protocol === "https:")),
- 'true_color': WebUtil.getQueryVar('true_color', true),
- 'local_cursor': WebUtil.getQueryVar('cursor', true),
- 'shared': WebUtil.getQueryVar('shared', true),
+ 'encrypt': (window.location.protocol === "https:"),
+ 'true_color': true,
+ 'local_cursor': true,
+ 'shared': true,
'view_only': false,
'updateState': updateState});
rfb.connect(host, port, password, path);

0 comments on commit d0adf28

Please sign in to comment.