diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-02-14 11:14:52 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-02-14 11:14:52 -0700 |
commit | f42b138fb18d080861f70e831c479738e3cdcd14 (patch) | |
tree | 13215d6c6fc111162baeb080428fd3b48ecc71ee /modules/caddyhttp | |
parent | 2cc5d2227dd8b8ad2d71112709ec29ab34fcd0ea (diff) |
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')
-rw-r--r-- | modules/caddyhttp/autohttps.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go index d60e955..8b6fa4d 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, }) |