From 02eda8cf221664b40ce0f4aca827022837d93f20 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 25 Aug 2023 14:48:38 +0200 Subject: [PATCH] feat: print routing v1 url we do this for webui, would not hurt here --- cmd/ipfs/daemon.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/ipfs/daemon.go b/cmd/ipfs/daemon.go index 84cf3b365abb..55ecaf2c09ed 100644 --- a/cmd/ipfs/daemon.go +++ b/cmd/ipfs/daemon.go @@ -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