We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 872d698 commit da75e33Copy full SHA for da75e33
apiserver/api/api.go
@@ -34,7 +34,11 @@ func (a *api) gatewayConfig(w http.ResponseWriter, r *http.Request) {
34
35
peers := make([]Peer, 0)
36
for _, client := range clients {
37
- peers = append(peers, Peer{PublicKey: client.PublicKey, IP: client.IP})
+ if *client.Healthy {
38
+ peers = append(peers, Peer{PublicKey: client.PublicKey, IP: client.IP})
39
+ } else {
40
+ log.Tracef("Skipping unhealthy client: %s", client.Serial)
41
+ }
42
}
43
44
w.WriteHeader(http.StatusOK)
0 commit comments