mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 20:38:51 +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
|
||||
continue
|
||||
}
|
||||
if !peer.Connected || peer.PendingDelete || peer.Action == models.NODE_DELETE {
|
||||
continue
|
||||
}
|
||||
peerHost, err := GetHost(peer.HostID.String())
|
||||
if err != nil {
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue