mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-03 01:11:14 +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) {
|
func (a *Account) processGroups(groupIDs []string, peerMap peerMap) {
|
||||||
for _, pid := range groupIDs {
|
for _, gid := range groupIDs {
|
||||||
p, ok := a.Peers[pid]
|
for _, pid := range a.Groups[gid].Peers {
|
||||||
if ok {
|
p, ok := a.Peers[pid]
|
||||||
peerMap[pid] = p
|
if ok {
|
||||||
|
peerMap[pid] = p
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user