From b0a0f12479691c3fe43f38c83480a3c8422d91fd Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 26 Apr 2024 10:50:32 +0100 Subject: [PATCH] set host --- server/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.ts b/server/index.ts index 721aaaa..97ab855 100644 --- a/server/index.ts +++ b/server/index.ts @@ -323,13 +323,13 @@ const websocketServer = new WebSocketServer({ port: Config.ports.ws }, () => { Console.printInfo(`WebsocketServer listening at ws://localhost:${Config.ports.ws}`); - fastify.listen({ port: Config.ports.http }, (err, address) => { + fastify.listen({ port: Config.ports.http, host: "0.0.0.0" }, (err, address) => { if (err) { Console.printError(`Error occured while spinning up fastify:\n${err}`); process.exit(1); } - Console.printInfo(`Fastify listening at ${address.replace("[::1]", "localhost")}`); + Console.printInfo(`Fastify listening at ${address.replace("0.0.0.0", "localhost")}`); Console.printInfo("MultiProbe is ready to go!"); });