From 9e4f532ae870986287bcd3fbd7f1692cf51eeeff Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 31 Jan 2023 12:53:22 +0000 Subject: [PATCH] fix: listen on `0.0.0.0` --- src/http.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/http.js b/src/http.js index ab41ac6..1e19f38 100644 --- a/src/http.js +++ b/src/http.js @@ -177,7 +177,10 @@ module.exports = async client => { }); // start the fastify server - fastify.listen({ port: process.env.HTTP_BIND }, (err, addr) => { + fastify.listen({ + host: '0.0.0.0', + port: process.env.HTTP_BIND, + }, (err, addr) => { if (err) client.log.error.http(err); else client.log.success.http(`Listening at ${addr}`); });