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 f622d58917)
This commit is contained in:
Alan Orth
2025-08-09 19:16:02 +03:00
committed by github-actions[bot]
parent ccd8d433ee
commit 66cdc972d2

View File

@@ -560,7 +560,7 @@ function createHttpsServer(keys) {
*/ */
function run() { function run() {
const port = environment.ui.port || 4000; const port = environment.ui.port || 4000;
const host = environment.ui.host || '/'; const host = environment.ui.host;
// Start up the Node server // Start up the Node server
const server = app(); const server = app();