mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
1 parent
d984dde2f5
commit
b29ca44c6e
1 file changed
+1
-2
+1
-2
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user