mirror of
https://github.com/gogs/gogs.git
synced 2026-07-06 23:57:45 +02:00
web: print accessible URL on startup (#6979)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user