From 5dedd209177d7ccba5d65a8028b2a12a9b6f5ab0 Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Tue, 31 Mar 2020 11:38:46 +0200 Subject: [PATCH] fixes listen host and port --- jitsiexporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jitsiexporter.go b/jitsiexporter.go index de26d08..2e7dbf1 100644 --- a/jitsiexporter.go +++ b/jitsiexporter.go @@ -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)) }