summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyhttp.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-06-21 08:08:26 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-06-21 08:08:26 -0600
commit70c788ce0c7f81f87d19850164031ce2e8158e72 (patch)
tree5f37c9ab2e524b04ca03065e07663babf2b898af /modules/caddyhttp/caddyhttp.go
parent1c443beb9c87b42d1d018f72e36ac9b15fdfccdc (diff)
Minor cleanups/improvements
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r--modules/caddyhttp/caddyhttp.go5
1 files changed, 2 insertions, 3 deletions
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{}{}
}
}
}