From f622d58917dbf7a19df301e0ee6dfbcc76736353 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 9 Aug 2025 19:16:02 +0300 Subject: [PATCH 1/2] server.ts: remove invalid host fallback If `environment.ui.host` is Falsy, then we attempt to fall back to a host value of '/', which is invalid. I think that, if a user has messed up their config so much that defaults in our configuration interface don't work, then we should actually fail here. --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index cf21eda6af..b35b1bdba2 100644 --- a/server.ts +++ b/server.ts @@ -562,7 +562,7 @@ function createHttpsServer(keys) { */ function run() { const port = environment.ui.port || 4000; - const host = environment.ui.host || '/'; + const host = environment.ui.host; // Start up the Node server const server = app(); From 6c0967751069da56f86c26ab66f7646d9f1b73b1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 9 Aug 2025 19:22:10 +0300 Subject: [PATCH 2/2] server.ts: remove port fallback If a user has messed up their config so much that the fallbacks in our default configuration interface don't work then we should just fail here. --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index b35b1bdba2..753f067330 100644 --- a/server.ts +++ b/server.ts @@ -561,7 +561,7 @@ function createHttpsServer(keys) { * Create an HTTP server with the configured port and host. */ function run() { - const port = environment.ui.port || 4000; + const port = environment.ui.port; const host = environment.ui.host; // Start up the Node server