Bind to localhost.

This commit is contained in:
Ferdinand Mütsch 2019-05-19 22:30:12 +02:00
parent 642d277cff
commit d803e818bb
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func main() {
))
// Listen HTTP
portString := ":" + strconv.Itoa(config.Port)
portString := "127.0.0.1:" + strconv.Itoa(config.Port)
s := &http.Server{
Handler: router,
Addr: portString,