fix: listen on 0.0.0.0

This commit is contained in:
Isaac 2023-01-31 12:53:22 +00:00
parent 63f5ea61f7
commit 9e4f532ae8
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -177,7 +177,10 @@ module.exports = async client => {
}); });
// start the fastify server // 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); if (err) client.log.error.http(err);
else client.log.success.http(`Listening at ${addr}`); else client.log.success.http(`Listening at ${addr}`);
}); });