type mismatch in fetch address
This commit is contained in:
parent
4f82bb71ab
commit
e30418b357
2
proxy.go
2
proxy.go
@ -133,7 +133,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *ShellyStatus) Fetch() {
|
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 {
|
if err != nil {
|
||||||
log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err)
|
log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user