Skip to content

Commit

Permalink
feat: print routing v1 url
Browse files Browse the repository at this point in the history
we do this for webui, would not hurt here
  • Loading branch information
lidel authored and hacdias committed Aug 25, 2023
1 parent 030ee4b commit 997a3d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,12 @@ func serveHTTPGateway(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, e
fmt.Printf("Gateway server listening on %s\n", listener.Multiaddr())
}

if cfg.Gateway.ExposeRoutingAPI.WithDefault(config.DefaultExposeRoutingAPI) {
for _, listener := range listeners {
fmt.Printf("Routing V1 API exposed at http://%s/routing/v1\n", listener.Addr())
}
}

cmdctx := *cctx
cmdctx.Gateway = true

Expand Down

0 comments on commit 997a3d3

Please sign in to comment.