fix listener

This commit is contained in:
shoopea committed 2023-08-10 12:45:44 +02:00
1 parent f527c21a90
commit 159682b2dc
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
shelly-proxy
+1 -1
View File
@@ -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)
}
}