mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-02 08:51:12 +01:00
fix map init with peers
This commit is contained in:
parent
b6a8b1dbcd
commit
31dd04e835
@ -581,10 +581,12 @@ func (a *Account) GetPolicyExpandedPeers() PolicyRuleExpandedPeers {
|
||||
}
|
||||
|
||||
func (a *Account) processGroups(groupIDs []string, peerMap peerMap) {
|
||||
for _, pid := range groupIDs {
|
||||
p, ok := a.Peers[pid]
|
||||
if ok {
|
||||
peerMap[pid] = p
|
||||
for _, gid := range groupIDs {
|
||||
for _, pid := range a.Groups[gid].Peers {
|
||||
p, ok := a.Peers[pid]
|
||||
if ok {
|
||||
peerMap[pid] = p
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user