From b96d557f5c3d2ab5dd53adb0c401a43aa83c2415 Mon Sep 17 00:00:00 2001 From: ggarri Date: Tue, 31 Dec 2019 13:11:17 +0100 Subject: [PATCH] fix: correct redirect when it loads webui (#2697) Fix issue of invalid redirect to url 'http://undefined:9090/ipfs...' when webui URL is loaded License: MIT Signed-off-by: ggarri --- src/http/api/routes/webui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/api/routes/webui.js b/src/http/api/routes/webui.js index a0382995c5..9c8c15cd7f 100644 --- a/src/http/api/routes/webui.js +++ b/src/http/api/routes/webui.js @@ -20,7 +20,7 @@ module.exports = [ const address = multiaddr(gateway).nodeAddress() port = address.port - host = address.host + host = address.address } catch (err) { // may not have gateway configured log.error(err)