Hi 👋
I found a bug when the UI is running on port 80 or 443. In particular, the field cport is not properly set, as window.location.host returns only the address, without the port number.
The fix is to use, in page/login.html, the following code:
var ip = window.location.host.split(':')[0];
var port = location.port || (location.protocol === 'https:' ? '443' : '80');
instead of:
var url = window.location.host.split(':');
var ip = url[0];
var port = url[1];
Hi 👋
I found a bug when the UI is running on port 80 or 443. In particular, the field
cportis not properly set, aswindow.location.hostreturns only the address, without the port number.The fix is to use, in
page/login.html, the following code:instead of: