aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-05-29 19:45:40 +0800
committerGitHub <noreply@github.com>2022-05-29 19:45:40 +0800
commit04d3946511709c11825e47aaeb25881856bede6d (patch)
tree615bf8d999390576dee964696b4551a18e687eea /internal/cmd
parentd7bda9ac0ef91c659194c89a6cfbe0611b65379e (diff)
web: print accessible URL on startup (#6979)
Diffstat (limited to 'internal/cmd')
-rw-r--r--internal/cmd/web.go3
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":