Listen on localhost only

This commit is contained in:
Nise Void 2020-05-08 12:31:12 +02:00
parent 29ecfb2b2a
commit d27aafe9b2
Signed by: NiseVoid
GPG Key ID: FBA14AC83EA602F3

View File

@ -26,7 +26,7 @@ func main() {
log.Fatal(`Failed to load template. (` + err.Error() + `)`) 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 { var config struct {