From ed40a5dcab80f17d63c3fba83349004eac3c7930 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 12 Sep 2019 17:31:54 -0600 Subject: tls: Do away with SetDefaults which did nothing useful CertMagic uses the same defaults for us --- modules/caddytls/tls.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/caddytls/tls.go') diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go index 93a05be..bbcf61e 100644 --- a/modules/caddytls/tls.go +++ b/modules/caddytls/tls.go @@ -197,9 +197,7 @@ func (t *TLS) getAutomationPolicyForName(name string) AutomationPolicy { } // default automation policy - mgmt := new(ACMEManagerMaker) - mgmt.SetDefaults() - return AutomationPolicy{Management: mgmt} + return AutomationPolicy{Management: new(ACMEManagerMaker)} } // CertificatesWithSAN returns the list of all certificates -- cgit v1.2.3