From 159682b2dc11ce89958fa5892c7ad318c0373c90 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 10 Aug 2023 12:45:44 +0200 Subject: [PATCH] fix listener --- .gitignore | 1 + proxy.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b1c3b3d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +shelly-proxy diff --git a/proxy.go b/proxy.go index 96bc9bc..9d07b19 100644 --- a/proxy.go +++ b/proxy.go @@ -133,7 +133,7 @@ func main() { r := gin.Default() r.GET("/metrics", GetMetrics) - if err := r.Run(fmt.Sprintf(":%d", exporterPort)); err != nil { + if err := r.Run(fmt.Sprintf(":%d", *exporterPort)); err != nil { log.Fatalf("router.Run (%s)", err) } }