Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: correct redirect when it loads webui (#2697)
Browse files Browse the repository at this point in the history
Fix issue of invalid redirect to url 'http://undefined:9090/ipfs...'
when webui URL is loaded

License: MIT
Signed-off-by: ggarri <[email protected]>
  • Loading branch information
ggarri committed Jan 1, 2020
1 parent 57c1027 commit b96d557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/api/routes/webui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b96d557

Please sign in to comment.