diff options
Diffstat (limited to 'modules/caddytls/acmemanager.go')
-rw-r--r-- | modules/caddytls/acmemanager.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/caddytls/acmemanager.go b/modules/caddytls/acmemanager.go index b717268..0482ce3 100644 --- a/modules/caddytls/acmemanager.go +++ b/modules/caddytls/acmemanager.go @@ -91,33 +91,9 @@ func (m *ACMEManagerMaker) Provision(ctx caddy.Context) error { m.Storage = nil // allow GC to deallocate - TODO: Does this help? } - m.SetDefaults() - return nil } -// SetDefaults sets necessary values that are -// currently empty to their default values. -func (m *ACMEManagerMaker) SetDefaults() { - // TODO: Setting all these defaults might not be necessary - // since CertMagic should fill them in for us... - if m.CA == "" { - m.CA = certmagic.Default.CA - } - if m.Email == "" { - m.Email = certmagic.Default.Email - } - if m.RenewAhead == 0 { - m.RenewAhead = caddy.Duration(certmagic.Default.RenewDurationBefore) - } - if m.keyType == "" { - m.keyType = certmagic.Default.KeyType - } - if m.storage == nil { - m.storage = certmagic.Default.Storage - } -} - // makeCertMagicConfig converts m into a certmagic.Config, because // this is a special case where the default manager is the certmagic // Config and not a separate manager. |