fix listener
This commit is contained in:
parent
f527c21a90
commit
159682b2dc
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
shelly-proxy
|
2
proxy.go
2
proxy.go
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user