diff --git a/models/controllers/helpers.go b/models/controllers/helpers.go index 26f20c7d..d60e3137 100644 --- a/models/controllers/helpers.go +++ b/models/controllers/helpers.go @@ -102,18 +102,18 @@ func ConnectivityTest(clientName, externalIP string) bool { if err != nil { return false } - + body, err := io.ReadAll(resp.Body) if err != nil { return false } - + var natsResponse Connections err = json.Unmarshal(body, &natsResponse) if err != nil { return false } - + for _, client := range natsResponse.Connections { if client.Name == clientName { return true