Fix status indication

This commit is contained in:
Zoltán Papp 2024-10-29 12:33:31 +01:00
parent bfb43a1246
commit 50cd5d316e

View File

@ -675,11 +675,11 @@ func (d *Status) GetRelayStates() []relay.ProbeResult {
// in case of connection we will use the instance specific address
instanceAddr, err := d.relayMgr.RelayInstanceAddress()
if err != nil {
// TODO add their status
if errors.Is(err, relayClient.ErrRelayClientNotConnected) {
for _, r := range d.relayMgr.ServerURLs() {
relayStates = append(relayStates, relay.ProbeResult{
URI: r,
Err: err,
})
}
return relayStates