From 66cdc972d2bc2d20c12e24930a5a3381fdd0f891 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. (cherry picked from commit f622d58917dbf7a19df301e0ee6dfbcc76736353) --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index 1aee5dc657..9713e5ffdb 100644 --- a/server.ts +++ b/server.ts @@ -560,7 +560,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 65cd1df6efc299da6007c971b458b414a0f48a4d 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. (cherry picked from commit 6c0967751069da56f86c26ab66f7646d9f1b73b1) --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index 9713e5ffdb..f5a27ccaef 100644 --- a/server.ts +++ b/server.ts @@ -559,7 +559,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