change address from 0.0.0.0 to 127.0.0.1 (windows...)
This commit is contained in:
parent
7f28c08c78
commit
b298451c1f
|
@ -25,7 +25,7 @@ func viewHandler(root string, w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
func Serve(root string) {
|
||||
address := "0.0.0.0:8000"
|
||||
address := "127.0.0.1:8000"
|
||||
fmt.Println("Serving " + root + " at http://" + address + " ...")
|
||||
fmt.Println("Use Ctrl+C to exit")
|
||||
fmt.Println("(This is not a production web server, don't get any funny ideas)")
|
||||
|
|
Loading…
Reference in New Issue
Block a user