diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-23 13:32:17 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-23 13:32:17 -0600 |
commit | 169883868503c809c9ac9c8c1fe93c7deff9cd2e (patch) | |
tree | 05f9a2a684ff8f4097a18a83fd6929e2503ca51a /cmd | |
parent | 4c43bf8cc8dbdaa42f3eb1fc7936afdefe3d4bbf (diff) |
tls: Few minor improvements/simplifications
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/commandfuncs.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index e76d7f1..80d00a3 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -189,6 +189,10 @@ func cmdRun(fl Flags) (int, error) { cleanModVersion := strings.TrimPrefix(goModule.Version, "v") certmagic.UserAgent = "Caddy/" + cleanModVersion + // by using Caddy, user indicates agreement to CA terms + // (very important, or ACME account creation will fail!) + certmagic.DefaultACME.Agreed = true + // run the initial config err = caddy.Load(config, true) if err != nil { |