fix listener

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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
shelly-proxy

View File

@ -133,7 +133,7 @@ func main() {
r := gin.Default() r := gin.Default()
r.GET("/metrics", GetMetrics) 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) log.Fatalf("router.Run (%s)", err)
} }
} }