diff --git a/proxy.go b/proxy.go index 55daeae..9478bb9 100644 --- a/proxy.go +++ b/proxy.go @@ -133,7 +133,7 @@ func main() { } func (s *ShellyStatus) Fetch() { - resp, err := http.Get(fmt.Sprintf("http://%d:%d/status", shellyHost, *shellyPort)) + resp, err := http.Get(fmt.Sprintf("http://%s:%d/status", *shellyHost, *shellyPort)) if err != nil { log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err) }