type mismatch in fetch address

This commit is contained in:
shoopea 2023-08-10 12:24:52 +02:00
parent 4f82bb71ab
commit e30418b357

View File

@ -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)
}