Make sure that complete server URL is logged on startup - 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 bef0f281d1d9a6f58c0b50140ddb2c4e6991bc95
DIR parent feba35cd1f62dd330ac4b1da19d758d2b6c36a87
HTML Author: bep <bjorn.erik.pedersen@gmail.com>
Date: Sat, 9 May 2015 08:02:52 +0200
Make sure that complete server URL is logged on startup
Fixes #1113
Diffstat:
M commands/server.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git 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")