From a03baa8461ff257c1d9211431bc18192c39f1c96 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Wed, 30 Aug 2023 20:23:35 +0700 Subject: [PATCH] update serviceUrl to the success port (#439) * update serviceUrl to the success port * correct log --- lib/utils/http-listener.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/http-listener.js b/lib/utils/http-listener.js index 8636395b..35ff54ca 100644 --- a/lib/utils/http-listener.js +++ b/lib/utils/http-listener.js @@ -6,7 +6,8 @@ const {PORT, HTTP_PORT_MAX} = require('../config'); const doListen = (logger, app, port, resolve) => { const server = app.listen(port, () => { const {srf} = app.locals; - logger.info(`listening for HTTP requests on port ${PORT}, serviceUrl is ${srf.locals.serviceUrl}`); + srf.locals.serviceUrl = `http://${srf.locals.ipv4}:${port}`; + logger.info(`listening for HTTP requests on port ${port}, serviceUrl is ${srf.locals.serviceUrl}`); resolve({server, app}); }); return server;