summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/autohttps.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-24 17:48:33 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-24 17:48:33 -0600
commit100d19e3afe403c41fe678fef2671a129daddeda (patch)
treeaf34daedf0d2695c804134596ada6862415d8afc /modules/caddyhttp/autohttps.go
parentebf07f853bfbc54821fc35c0cfba97111ae70866 (diff)
dangit, of course I would bork my git commit
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 83414bb..ad0a716 100644
--- a/modules/caddyhttp/autohttps.go
+++ b/modules/caddyhttp/autohttps.go
@@ -158,7 +158,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
// and no domains, it could be a catch-all with on-demand TLS, and
// in that case we would still need HTTP->HTTPS redirects, which we
// do below
- if len(serverDomainSet) == 0 || len(srv.TLSConnPolicies) == 0 {
+ if len(serverDomainSet) == 0 && len(srv.TLSConnPolicies) == 0 {
continue
}