summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-07 11:47:55 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-07 11:47:55 -0700
commit217419f6d97885daf0fb8832a407626e578523f0 (patch)
treee3fd05343ae5eb1c74a6cf171503d5957cf0d466 /modules/caddyhttp
parent4d18587192e4fffe5b34b714eaabcfc212914c1e (diff)
tls: Couple of quick fixes for 4d18587192e4fffe5b34b714eaabcfc212914c1e
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/autohttps.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go
index 6b53d39..751c6df 100644
--- a/modules/caddyhttp/autohttps.go
+++ b/modules/caddyhttp/autohttps.go
@@ -318,6 +318,9 @@ func (app *App) createAutomationPolicy(ctx caddy.Context) error {
// if it has an ACME issuer, maybe we can just use that
acmeIssuer, _ = matchingPolicy.Issuer.(*caddytls.ACMEIssuer)
}
+ if acmeIssuer == nil {
+ acmeIssuer = new(caddytls.ACMEIssuer)
+ }
if acmeIssuer.Challenges == nil {
acmeIssuer.Challenges = new(caddytls.ChallengesConfig)
}