Use update registration instead

This commit is contained in:
Melon 2023-07-16 16:19:06 +01:00
parent f680332340
commit 572325f7bf
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -364,7 +364,7 @@ func (s *Service) setupLegoClient(localData *localCertData) (*lego.Client, error
}
// make sure the LetsEncrypt account is registered
register, err := client.Registration.Register(registration.RegisterOptions{TermsOfServiceAgreed: true})
register, err := client.Registration.UpdateRegistration(registration.RegisterOptions{TermsOfServiceAgreed: true})
if err != nil {
return nil, fmt.Errorf("failed to update account registration: %w", err)
}