summaryrefslogtreecommitdiff
path: root/caddyconfig
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-06-01 15:12:57 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-06-01 15:12:57 -0600
commit886ba84baa4f7ed7502034893e084193dd12f9f7 (patch)
tree84b1e013026557ad9b145f8462b19499d5853c88 /caddyconfig
parenta9267791c4b34b06cfb71d7cf8bee203545a3677 (diff)
Fix #4822 and fix #4779
The fix for 4822 is the change at the top of the file, and 4779's fix is toward the bottom of the file.
Diffstat (limited to 'caddyconfig')
-rw-r--r--caddyconfig/httpcaddyfile/tlsapp.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/tlsapp.go b/caddyconfig/httpcaddyfile/tlsapp.go
index 76d7ebf..40ea47d 100644
--- a/caddyconfig/httpcaddyfile/tlsapp.go
+++ b/caddyconfig/httpcaddyfile/tlsapp.go
@@ -350,7 +350,6 @@ func (st ServerType) buildTLSApp(
globalPreferredChains := options["preferred_chains"]
hasGlobalACMEDefaults := globalEmail != nil || globalACMECA != nil || globalACMECARoot != nil || globalACMEDNS != nil || globalACMEEAB != nil || globalPreferredChains != nil
if hasGlobalACMEDefaults {
- // for _, ap := range tlsApp.Automation.Policies {
for i := 0; i < len(tlsApp.Automation.Policies); i++ {
ap := tlsApp.Automation.Policies[i]
if len(ap.Issuers) == 0 && automationPolicyHasAllPublicNames(ap) {