fixes listen host and port

master
Marvin Steadfast 4 years ago
parent 131f374e31
commit 5dedd20917

@ -117,5 +117,5 @@ func Serve(url string, debug bool, interval time.Duration, port int, host string
http.Handle("/metrics", promhttp.Handler())
log.Info("beginning to serve")
log.Fatal(http.ListenAndServe("0.0.0.0:8080", nil))
log.Fatal(http.ListenAndServe(fmt.Sprintf("%s:%d", host, port), nil))
}

Loading…
Cancel
Save