Listen on localhost only
This commit is contained in:
parent
29ecfb2b2a
commit
d27aafe9b2
1 changed files with 1 additions and 1 deletions
2
main.go
2
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue