Show both baseURL and bind address in `hugo server` output - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit b29ca44c6e32dcf244f945e3a52d6cf57495aafd
DIR parent d984dde2f5b005d1b82da4ca758797b532567fe0
HTML Author: Anthony Fok <foka@debian.org>
Date: Tue, 15 Sep 2015 23:12:01 -0600
Show both baseURL and bind address in `hugo server` output
Fixes #1426
Diffstat:
M commands/server.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
DIR diff --git a/commands/server.go b/commands/server.go
@@ -138,9 +138,8 @@ func serve(port int) {
http.Handle(u.Path, http.StripPrefix(u.Path, fileserver))
}
- u.Host = net.JoinHostPort(serverInterface, strconv.Itoa(serverPort))
u.Scheme = "http"
- jww.FEEDBACK.Printf("Web Server is available at %s\n", u.String())
+ jww.FEEDBACK.Printf("Web Server is available at %s (bind address %s)\n", u.String(), serverInterface)
fmt.Println("Press Ctrl+C to stop")
endpoint := net.JoinHostPort(serverInterface, strconv.Itoa(port))