From d27aafe9b2800ce2c8cf9defbbbb832dc2818c5d Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Fri, 8 May 2020 12:31:12 +0200 Subject: [PATCH] Listen on localhost only --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index da7176b..33588f2 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ func main() { log.Fatal(`Failed to load template. (` + err.Error() + `)`) } - log.Fatal(http.ListenAndServe(":"+strconv.Itoa(config.Port), http.HandlerFunc(serveRequest))) + log.Fatal(http.ListenAndServe("127.0.0.1:"+strconv.Itoa(config.Port), http.HandlerFunc(serveRequest))) } var config struct {