fixes listen host and port
This commit is contained in:
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…
Reference in New Issue
Block a user