Make sure that complete server URL is logged on startup

Fixes #1113
This commit is contained in:
bep 2015-05-09 08:02:52 +02:00
parent feba35cd1f
commit bef0f281d1

View file

@ -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")