mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-17 15:56:39 +00:00
fix map init with peers
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user