mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-03 00:25:37 +02:00
allow sync for and return empty map
This commit is contained in:
parent
efd05ca023
commit
2129b23fe7
@ -480,11 +480,6 @@ func (am *DefaultAccountManager) SyncPeer(sync PeerSync) (*nbpeer.Peer, *Network
|
|||||||
return nil, nil, status.Errorf(status.Unauthenticated, "peer is not registered")
|
return nil, nil, status.Errorf(status.Unauthenticated, "peer is not registered")
|
||||||
}
|
}
|
||||||
|
|
||||||
validatedPeers := additions.ValidatePeers([]*nbpeer.Peer{peer})
|
|
||||||
if len(validatedPeers) == 0 {
|
|
||||||
return nil, nil, status.Errorf(status.PermissionDenied, "peer validation failed")
|
|
||||||
}
|
|
||||||
|
|
||||||
err = checkIfPeerOwnerIsBlocked(peer, account)
|
err = checkIfPeerOwnerIsBlocked(peer, account)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user