diff --git a/src/bin/super/superapp/src/Healthcheck.svelte b/src/bin/super/superapp/src/Healthcheck.svelte index 98a18803..202ed303 100644 --- a/src/bin/super/superapp/src/Healthcheck.svelte +++ b/src/bin/super/superapp/src/Healthcheck.svelte @@ -13,7 +13,7 @@ try { let url = `https://boltwall.${host}/stats`; // custom URLs - if (!url.includes("swarm")) { + if (!/swarm\d+/.test(host)) { url = `https://${host}/api/stats`; } console.log("URL", url); diff --git a/src/bin/super/superapp/src/Remotes.svelte b/src/bin/super/superapp/src/Remotes.svelte index cb3506c0..dea0c361 100644 --- a/src/bin/super/superapp/src/Remotes.svelte +++ b/src/bin/super/superapp/src/Remotes.svelte @@ -91,7 +91,7 @@ try { let url = `https://boltwall.${host}/stats`; // custom URLs - if (!url.includes("swarm")) { + if (!/swarm\d+/.test(host)) { url = `https://${host}/api/stats`; } console.log("URL", url);