Skip to content

Commit

Permalink
Merge pull request #5729 from dtkav/feat/cmd/webui-link
Browse files Browse the repository at this point in the history
output link to WebUI on daemon startup
  • Loading branch information
Stebalien authored Nov 5, 2018
2 parents c5c4379 + c7e10f2 commit 7e26ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
1 change: 1 addition & 0 deletions test/sharness/t0060-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e26ef5

Please sign in to comment.