add Web UI link to daemon startup

License: MIT
Signed-off-by: Daniel Grossmann-Kavanagh <me@danielgk.com>
This commit is contained in:
Daniel Grossmann-Kavanagh 2018-11-02 19:24:00 -07:00
parent 3f7668bdca
commit c7e10f2078
No known key found for this signature in database
GPG Key ID: 8E67F2505F8DF6A1
2 changed files with 2 additions and 1 deletions

View File

@ -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)
}

View File

@ -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