mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
Function name changed in lego
This commit is contained in:
parent
f24ecee603
commit
2e5eb63850
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user