add comment

This commit is contained in:
pascal
2026-06-18 15:57:46 +02:00
parent 16f2f2cc23
commit 53e1473299

View File

@@ -1168,16 +1168,16 @@ 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 {
if err = transaction.SavePeer(ctx, accountID, peer); err != nil {
return err
}
}
// 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)
return nil
})
if err != nil {