type mismatch in fetch address
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user