This commit is contained in:
pascal
2026-05-07 16:08:45 +02:00
parent c7bff8f074
commit 46494bd860
3 changed files with 7 additions and 2 deletions
@@ -177,7 +177,10 @@ func (m *managerImpl) UpdateRouter(ctx context.Context, userID string, router *t
}
allPeerGroups := router.PeerGroups
directPeers := []string{router.Peer}
var directPeers []string
if router.Peer != "" {
directPeers = append(directPeers, router.Peer)
}
oldRouter, err := transaction.GetNetworkRouterByID(ctx, store.LockingStrengthNone, router.AccountID, router.ID)
if err == nil {
allPeerGroups = append(allPeerGroups, oldRouter.PeerGroups...)