]> git.proxmox.com Git - novnc-pve.git/commitdiff
fix bug #562: set port to 443 when no port is specified
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 17 Sep 2014 11:33:47 +0000 (13:33 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 17 Sep 2014 11:33:47 +0000 (13:33 +0200)
This can happen if someone tries to access with revers proxy.

pveui.js

index 9a689f277eab5083d8323f0cf93521ea9abdc99a..61f701bc988479ec2aa217df291e9a90fb3b85b0 100644 (file)
--- a/pveui.js
+++ b/pveui.js
@@ -504,7 +504,7 @@ pve_start: function(callback) {
        });
 
        UI.updateSetting('host', window.location.hostname);
-       UI.updateSetting('port', window.location.port);
+       UI.updateSetting('port', window.location.port || 443);
        UI.updateSetting('password', param.ticket);
        UI.updateSetting('encrypt', true);
        UI.updateSetting('true_color', true);