mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-21 12:59:08 +02:00
fix: remove change to peers group all
This commit is contained in:
@@ -756,9 +756,11 @@ func (am *DefaultAccountManager) AddPeer(ctx context.Context, accountID, setupKe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = transaction.AddPeerToAllGroup(ctx, accountID, newPeer.ID)
|
if !peer.ProxyMeta.Embedded {
|
||||||
if err != nil {
|
err = transaction.AddPeerToAllGroup(ctx, accountID, newPeer.ID)
|
||||||
return fmt.Errorf("failed adding peer to All group: %w", err)
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed adding peer to All group: %w", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in New Issue
Block a user