Skip to content

Commit

Permalink
fix: listen on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 31, 2023
1 parent 63f5ea6 commit 9e4f532
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/http.js
Expand Up @@ -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}`);
});
Expand Down

0 comments on commit 9e4f532

Please sign in to comment.