From 70c788ce0c7f81f87d19850164031ce2e8158e72 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 21 Jun 2019 08:08:26 -0600 Subject: Minor cleanups/improvements --- modules/caddyhttp/caddyhttp.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/caddyhttp/caddyhttp.go') diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index ffd7d0f..009e564 100644 --- a/modules/caddyhttp/caddyhttp.go +++ b/modules/caddyhttp/caddyhttp.go @@ -203,10 +203,9 @@ func (app *App) automaticHTTPS() error { for _, m := range matcherSet { if hm, ok := m.(*MatchHost); ok { for _, d := range *hm { - if !certmagic.HostQualifies(d) { - continue + if certmagic.HostQualifies(d) { + domainSet[d] = struct{}{} } - domainSet[d] = struct{}{} } } } -- cgit v1.2.3