diff --git a/management/server/peer.go b/management/server/peer.go index a8f4ae7f5..ea3df0e5c 100644 --- a/management/server/peer.go +++ b/management/server/peer.go @@ -1168,6 +1168,8 @@ func (am *DefaultAccountManager) LoginPeer(ctx context.Context, login types.Peer return status.Errorf(status.PreconditionFailed, "couldn't login peer: setup key doesn't allow extra DNS labels") } + // This is needed so that toPeerConfig will run the IPv6 capability check and assign the capability to the peer if needed. + // Otherwise temporary peers or browser clients will end up in a restart loop peer.UpdateMetaIfNew(login.Meta) if shouldStorePeer {