Skip to content

Commit b96d557

Browse files
committed
fix: correct redirect when it loads webui (ipfs#2697)
Fix issue of invalid redirect to url 'http://undefined:9090/ipfs...' when webui URL is loaded License: MIT Signed-off-by: ggarri <gabriel@lightstreams.io>
1 parent 57c1027 commit b96d557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/api/routes/webui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = [
2020
const address = multiaddr(gateway).nodeAddress()
2121

2222
port = address.port
23-
host = address.host
23+
host = address.address
2424
} catch (err) {
2525
// may not have gateway configured
2626
log.error(err)

0 commit comments

Comments
 (0)