summaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/autohttps.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-02-14 11:14:52 -0700
committerMatthew Holt <[email protected]>2020-02-14 11:14:52 -0700
commitf42b138fb18d080861f70e831c479738e3cdcd14 (patch)
tree13215d6c6fc111162baeb080428fd3b48ecc71ee /modules/caddyhttp/autohttps.go
parent2cc5d2227dd8b8ad2d71112709ec29ab34fcd0ea (diff)
downloadcaddy-f42b138fb18d080861f70e831c479738e3cdcd14.tar.gz
caddy-f42b138fb18d080861f70e831c479738e3cdcd14.zip
tls: Avoid duplication AutomationPolicies for large quantities of names
This should greatly reduce memory usage at scale. Part of an overall effort between Caddy 2 and CertMagic to optimize for large numbers of names.
Diffstat (limited to 'modules/caddyhttp/autohttps.go')
-rw-r--r--modules/caddyhttp/autohttps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go
index d60e955ce..8b6fa4d3a 100644
--- a/modules/caddyhttp/autohttps.go
+++ b/modules/caddyhttp/autohttps.go
@@ -338,7 +338,7 @@ func (app *App) automaticHTTPSPhase3() error {
srv.tlsApp.Automation = new(caddytls.AutomationConfig)
}
srv.tlsApp.Automation.Policies = append(srv.tlsApp.Automation.Policies,
- caddytls.AutomationPolicy{
+ &caddytls.AutomationPolicy{
Hosts: domainsForCerts,
Management: acmeManager,
})