1
0
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:
Maycon Santos 2024-08-07 16:39:31 +02:00
parent b6a8b1dbcd
commit 31dd04e835

View File

@ -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
}
}
}
}