From 04d3946511709c11825e47aaeb25881856bede6d Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sun, 29 May 2022 19:45:40 +0800 Subject: web: print accessible URL on startup (#6979) --- internal/cmd/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/cmd/web.go') diff --git a/internal/cmd/web.go b/internal/cmd/web.go index 80c8ce48..4356d5b8 100644 --- a/internal/cmd/web.go +++ b/internal/cmd/web.go @@ -702,11 +702,10 @@ func runWeb(c *cli.Context) error { var listenAddr string if conf.Server.Protocol == "unix" { listenAddr = conf.Server.HTTPAddr - log.Info("Listen on %v://%s", conf.Server.Protocol, listenAddr) } else { listenAddr = fmt.Sprintf("%s:%s", conf.Server.HTTPAddr, conf.Server.HTTPPort) - log.Info("Listen on %v://%s%s", conf.Server.Protocol, listenAddr, conf.Server.Subpath) } + log.Info("Available on %s", conf.Server.ExternalURL) switch conf.Server.Protocol { case "http": -- cgit v1.2.3