summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorilmari-lauhakangas <ilmari-lauhakangas@users.noreply.github.com>2023-09-11 12:38:24 +0300
committerGitHub <noreply@github.com>2023-09-11 11:38:24 +0200
commit525bed99190b2f90946e7010c6094feb3884af6a (patch)
tree81510be1c3393c6f78ad09ccd26f628137c8a89f /commands
parent2ae4786ca1e4b912fabc8a6be503772374fed5d6 (diff)
commands: Print language code after web server address info
Diffstat (limited to 'commands')
-rw-r--r--commands/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/server.go b/commands/server.go
index 153f4a9d1..364e59f8f 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -927,7 +927,7 @@ func (c *serverCommand) serve() error {
for i := range baseURLs {
mu, listener, serverURL, endpoint, err := srv.createEndpoint(i)
- var srv *http.Server
+ var srv *http.Server
if c.tlsCertFile != "" && c.tlsKeyFile != "" {
srv = &http.Server{
Addr: endpoint,
@@ -954,7 +954,7 @@ func (c *serverCommand) serve() error {
mu.HandleFunc(u.Path+"/livereload.js", livereload.ServeJS)
mu.HandleFunc(u.Path+"/livereload", livereload.Handler)
}
- c.r.Printf("Web Server is available at %s (bind address %s)\n", serverURL, c.serverInterface)
+ c.r.Printf("Web Server is available at %s (bind address %s) %s\n", serverURL, c.serverInterface, roots[i])
wg1.Go(func() error {
if c.tlsCertFile != "" && c.tlsKeyFile != "" {
err = srv.ServeTLS(listener, c.tlsCertFile, c.tlsKeyFile)