From fcf84f44bb1c60d4d9b307c209e45ae40e7fb054 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 17 Sep 2014 13:33:47 +0200 Subject: [PATCH] fix bug #562: set port to 443 when no port is specified This can happen if someone tries to access with revers proxy. --- pveui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pveui.js b/pveui.js index 9a689f2..61f701b 100644 --- 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); -- 2.39.2