Skip to content

Commit

Permalink
Show both baseURL and bind address in hugo server output
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok authored and bramp committed Dec 17, 2015
1 parent 65575f2 commit e3740c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e3740c0

Please sign in to comment.