@cryptotaxi247 / kubo / commits / c7e10f207

add Web UI link to daemon startup

License: MIT Signed-off-by: Daniel Grossmann-Kavanagh <me@danielgk.com>

Daniel Grossmann-Kavanagh committed Nov 2, 2018 at 19:24 UTC c7e10f2078b0b511bae6c6112bc4331aa7be4c20
2 files changed +2 -1
cmd/ipfs/daemon.go
+1 -1
@@ -435,7 +435,7 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
435 // we might have listened to /tcp/0 - lets see what we are listing on
436 apiMaddr = apiLis.Multiaddr()
437 fmt.Printf("API server listening on %s\n", apiMaddr)
438 -
438 + fmt.Printf("WebUI: http://%s/webui\n", apiLis.Addr())
439 listeners = append(listeners, apiLis)
440 }
441
test/sharness/t0060-daemon.sh
+1
@@ -46,6 +46,7 @@ test_expect_success "ipfs daemon output looks good" '
46 sed "s/^/Swarm listening on /" listen_addrs >>expected_daemon &&
47 sed "s/^/Swarm announcing /" local_addrs >>expected_daemon &&
48 echo "API server listening on '$API_MADDR'" >>expected_daemon &&
49 + echo "WebUI: http://'$API_ADDR'/webui" >>expected_daemon &&
50 echo "Gateway (readonly) server listening on '$GWAY_MADDR'" >>expected_daemon &&
51 echo "Daemon is ready" >>expected_daemon &&
52 test_cmp expected_daemon actual_daemon