From c7e10f2078b0b511bae6c6112bc4331aa7be4c20 Mon Sep 17 00:00:00 2001 From: Daniel Grossmann-Kavanagh Date: Fri, 2 Nov 2018 19:24:00 -0700 Subject: [PATCH] add Web UI link to daemon startup License: MIT Signed-off-by: Daniel Grossmann-Kavanagh --- cmd/ipfs/daemon.go | 2 +- test/sharness/t0060-daemon.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/ipfs/daemon.go b/cmd/ipfs/daemon.go index bc9da9d2d60..e6487711a4b 100644 --- a/cmd/ipfs/daemon.go +++ b/cmd/ipfs/daemon.go @@ -435,7 +435,7 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error // we might have listened to /tcp/0 - lets see what we are listing on apiMaddr = apiLis.Multiaddr() fmt.Printf("API server listening on %s\n", apiMaddr) - + fmt.Printf("WebUI: http://%s/webui\n", apiLis.Addr()) listeners = append(listeners, apiLis) } diff --git a/test/sharness/t0060-daemon.sh b/test/sharness/t0060-daemon.sh index 01fba5936bf..3c57981570c 100755 --- a/test/sharness/t0060-daemon.sh +++ b/test/sharness/t0060-daemon.sh @@ -46,6 +46,7 @@ test_expect_success "ipfs daemon output looks good" ' sed "s/^/Swarm listening on /" listen_addrs >>expected_daemon && sed "s/^/Swarm announcing /" local_addrs >>expected_daemon && echo "API server listening on '$API_MADDR'" >>expected_daemon && + echo "WebUI: http://'$API_ADDR'/webui" >>expected_daemon && echo "Gateway (readonly) server listening on '$GWAY_MADDR'" >>expected_daemon && echo "Daemon is ready" >>expected_daemon && test_cmp expected_daemon actual_daemon