Skip to content

Commit 66cdc97

Browse files
alanorthgithub-actions[bot]
authored andcommitted
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 f622d58)
1 parent ccd8d43 commit 66cdc97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ function createHttpsServer(keys) {
560560
*/
561561
function run() {
562562
const port = environment.ui.port || 4000;
563-
const host = environment.ui.host || '/';
563+
const host = environment.ui.host;
564564

565565
// Start up the Node server
566566
const server = app();

0 commit comments

Comments
 (0)