set host
This commit is contained in:
parent
f7dc78f5a3
commit
b0a0f12479
1 changed files with 2 additions and 2 deletions
|
@ -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!");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue