From 2e5eb638503115a32ef1c29b59fd2520214bceac Mon Sep 17 00:00:00 2001 From: xenolf Date: Fri, 23 Oct 2015 16:29:05 +0200 Subject: [PATCH] Function name changed in lego --- config/letsencrypt/letsencrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/letsencrypt/letsencrypt.go b/config/letsencrypt/letsencrypt.go index 279d23a2..1a3bbab3 100644 --- a/config/letsencrypt/letsencrypt.go +++ b/config/letsencrypt/letsencrypt.go @@ -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())