From e30418b357b9476088d29c11268e596456543f60 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 10 Aug 2023 12:24:52 +0200 Subject: [PATCH] type mismatch in fetch address --- proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }