0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Function name changed in lego

This commit is contained in:
xenolf 2015-10-23 16:29:05 +02:00
parent f24ecee603
commit 2e5eb63850

View file

@ -164,7 +164,7 @@ func newClient(leEmail string) (*acme.Client, error) {
leUser.Registration = reg leUser.Registration = reg
// TODO: we can just do the agreement once: when registering, right? // TODO: we can just do the agreement once: when registering, right?
err = client.AgreeToTos() err = client.AgreeToTOS()
if err != nil { if err != nil {
saveUser(leUser) // TODO: Might as well try, right? Error check? saveUser(leUser) // TODO: Might as well try, right? Error check?
return nil, errors.New("error agreeing to terms: " + err.Error()) return nil, errors.New("error agreeing to terms: " + err.Error())