1
0

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.
This commit is contained in:
Alan Orth
2025-08-09 19:16:02 +03:00
parent 67a17e4ea1
commit f622d58917

View File

@@ -562,7 +562,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();