mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-23 06:18:46 +01:00
Fix status indication
This commit is contained in:
parent
bfb43a1246
commit
50cd5d316e
@ -675,11 +675,11 @@ func (d *Status) GetRelayStates() []relay.ProbeResult {
|
|||||||
// in case of connection we will use the instance specific address
|
// in case of connection we will use the instance specific address
|
||||||
instanceAddr, err := d.relayMgr.RelayInstanceAddress()
|
instanceAddr, err := d.relayMgr.RelayInstanceAddress()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO add their status
|
|
||||||
if errors.Is(err, relayClient.ErrRelayClientNotConnected) {
|
if errors.Is(err, relayClient.ErrRelayClientNotConnected) {
|
||||||
for _, r := range d.relayMgr.ServerURLs() {
|
for _, r := range d.relayMgr.ServerURLs() {
|
||||||
relayStates = append(relayStates, relay.ProbeResult{
|
relayStates = append(relayStates, relay.ProbeResult{
|
||||||
URI: r,
|
URI: r,
|
||||||
|
Err: err,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return relayStates
|
return relayStates
|
||||||
|
Loading…
Reference in New Issue
Block a user