From: bep Date: Sat, 9 May 2015 06:02:52 +0000 (+0200) Subject: Make sure that complete server URL is logged on startup X-Git-Tag: v0.14~69 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bef0f281;p=brevno-suite%2Fhugo Make sure that complete server URL is logged on startup Fixes #1113 --- diff --git a/commands/server.go b/commands/server.go index 528a08f2..c8fe7ee4 100644 --- a/commands/server.go +++ b/commands/server.go @@ -134,7 +134,7 @@ func serve(port int) { http.Handle(u.Path, http.StripPrefix(u.Path, fileserver)) } - u.Host = serverInterface + u.Host = net.JoinHostPort(serverInterface, strconv.Itoa(serverPort)) u.Scheme = "http" jww.FEEDBACK.Printf("Web Server is available at %s\n", u.String()) fmt.Println("Press Ctrl+C to stop")