diff --git a/src/scripts/clientUtils.js b/src/scripts/clientUtils.js index 5b43cd4695..b931fc64ac 100644 --- a/src/scripts/clientUtils.js +++ b/src/scripts/clientUtils.js @@ -31,9 +31,12 @@ export async function serverAddress() { const urls = []; urls.push(window.location.origin); urls.push(`https://${window.location.hostname}:8920`); - urls.push(`http://${window.location.hostname}:8096`); urls.push(...await webSettings.getServers()); + if (window.location.protocol === 'http') { + urls.push(`http://${window.location.hostname}:8096`); + } + const promises = urls.map(url => { return fetch(`${url}/System/Info/Public`).then(resp => url).catch(error => { return Promise.resolve();