mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
feba35cd1f
commit
bef0f281d1
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ func serve(port int) {
|
||||||
http.Handle(u.Path, http.StripPrefix(u.Path, fileserver))
|
http.Handle(u.Path, http.StripPrefix(u.Path, fileserver))
|
||||||
}
|
}
|
||||||
|
|
||||||
u.Host = serverInterface
|
u.Host = net.JoinHostPort(serverInterface, strconv.Itoa(serverPort))
|
||||||
u.Scheme = "http"
|
u.Scheme = "http"
|
||||||
jww.FEEDBACK.Printf("Web Server is available at %s\n", u.String())
|
jww.FEEDBACK.Printf("Web Server is available at %s\n", u.String())
|
||||||
fmt.Println("Press Ctrl+C to stop")
|
fmt.Println("Press Ctrl+C to stop")
|
||||||
|
|
Loading…
Reference in a new issue