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

View file

@ -323,13 +323,13 @@ const websocketServer = new WebSocketServer({
port: Config.ports.ws port: Config.ports.ws
}, () => { }, () => {
Console.printInfo(`WebsocketServer listening at ws://localhost:${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) { if (err) {
Console.printError(`Error occured while spinning up fastify:\n${err}`); Console.printError(`Error occured while spinning up fastify:\n${err}`);
process.exit(1); 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!"); Console.printInfo("MultiProbe is ready to go!");
}); });