From e313f2c7ddb9a4842458fa98aeb2b29a00706bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20G=C3=B3mez?= Date: Mon, 11 Sep 2023 10:25:22 +0200 Subject: [PATCH] fix-fastify-listen-args (#48) --- app/infrastructure/web-server/web-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/infrastructure/web-server/web-server.js b/app/infrastructure/web-server/web-server.js index 9fb1b03..03a81ec 100644 --- a/app/infrastructure/web-server/web-server.js +++ b/app/infrastructure/web-server/web-server.js @@ -33,7 +33,7 @@ const init = async (port = Number(PORT)) => { try { await mountRouters(app); logger.info(`Listening on ${port}`); - return app.listen({ port, address: '0.0.0.0' }); + return app.listen({ port, host: '0.0.0.0' }); } catch (err) { logger.error(err); return process.exit(1);