change address from 0.0.0.0 to 127.0.0.1 (windows...)

This commit is contained in:
gutmet 2018-12-09 16:11:00 +01:00
parent 7f28c08c78
commit b298451c1f

View File

@ -25,7 +25,7 @@ func viewHandler(root string, w http.ResponseWriter, r *http.Request) {
} }
func Serve(root string) { 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("Serving " + root + " at http://" + address + " ...")
fmt.Println("Use Ctrl+C to exit") fmt.Println("Use Ctrl+C to exit")
fmt.Println("(This is not a production web server, don't get any funny ideas)") fmt.Println("(This is not a production web server, don't get any funny ideas)")