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
// TODO: we can just do the agreement once: when registering, right?
err = client.AgreeToTos()
err = client.AgreeToTOS()
if err != nil {
saveUser(leUser) // TODO: Might as well try, right? Error check?
return nil, errors.New("error agreeing to terms: " + err.Error())