Actually listen to localhost

This commit is contained in:
2018-11-13 01:41:34 +00:00
parent 88e785e04b
commit 46cb09b1fc

2
app.go
View File

@@ -243,7 +243,7 @@ func Serve() {
http.Handle("/", r)
log.Info("Serving on http://localhost:%d\n", app.cfg.Server.Port)
log.Info("---")
err = http.ListenAndServe(fmt.Sprintf(":%d", app.cfg.Server.Port), nil)
err = http.ListenAndServe(fmt.Sprintf("localhost:%d", app.cfg.Server.Port), nil)
if err != nil {
log.Error("Unable to start: %v", err)
os.Exit(1)