This commit is contained in:
Holly Stubbs 2024-04-26 10:50:32 +01:00
parent f7dc78f5a3
commit b0a0f12479
Signed by: tgpholly
GPG Key ID: B8583C4B7D18119E
1 changed files with 2 additions and 2 deletions

View File

@ -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!");
});