From b298451c1f40479adfcd68546126abcb472aca07 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 9 Dec 2018 16:11:00 +0100 Subject: [PATCH] change address from 0.0.0.0 to 127.0.0.1 (windows...) --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 1e355e9..569ad3c 100644 --- a/server.go +++ b/server.go @@ -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)")