@marcel91200 / caddy Mirror · read-only / commits / 100d19e3
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

dangit, of course I would bork my git commit

Matthew Holt committed Apr 24, 2020 at 17:48 UTC 100d19e3afe403c41fe678fef2671a129daddeda
1 file changed +1 -1
modules/caddyhttp/autohttps.go
+1 -1
@@ -158,7 +158,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
158 // and no domains, it could be a catch-all with on-demand TLS, and
159 // in that case we would still need HTTP->HTTPS redirects, which we
160 // do below
161 - if len(serverDomainSet) == 0 || len(srv.TLSConnPolicies) == 0 {
161 + if len(serverDomainSet) == 0 && len(srv.TLSConnPolicies) == 0 {
162 continue
163 }
164