mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 21:05:54 +08:00
skip deleted or not connected peers for proxy
This commit is contained in:
parent
78b367cf0c
commit
ddab09a974
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ func GetProxyUpdateForHost(ctx context.Context, host *models.Host) (models.Proxy
|
||||||
//skip yourself
|
//skip yourself
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if !peer.Connected || peer.PendingDelete || peer.Action == models.NODE_DELETE {
|
||||||
|
continue
|
||||||
|
}
|
||||||
peerHost, err := GetHost(peer.HostID.String())
|
peerHost, err := GetHost(peer.HostID.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Reference in a new issue