From 525bed99190b2f90946e7010c6094feb3884af6a Mon Sep 17 00:00:00 2001 From: ilmari-lauhakangas Date: Mon, 11 Sep 2023 12:38:24 +0300 Subject: [PATCH] commands: Print language code after web server address info --- commands/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/server.go b/commands/server.go index 153f4a9d18a..364e59f8ff3 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)