diff options
author | Joe Chen <jc@unknwon.io> | 2022-05-29 19:45:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-29 19:45:40 +0800 |
commit | 04d3946511709c11825e47aaeb25881856bede6d (patch) | |
tree | 615bf8d999390576dee964696b4551a18e687eea /internal/cmd | |
parent | d7bda9ac0ef91c659194c89a6cfbe0611b65379e (diff) |
web: print accessible URL on startup (#6979)
Diffstat (limited to 'internal/cmd')
-rw-r--r-- | internal/cmd/web.go | 3 |
1 files changed, 1 insertions, 2 deletions
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": |