diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index ca55241ef..52abe4733 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -343,9 +343,9 @@ outer: host = repl.ReplaceAll(host, "") if strings.Contains(host, "*") { - if host == "*" { - return true, nil - } + if host == "*" { + return true, nil + } patternParts := strings.Split(host, ".") incomingParts := strings.Split(reqHost, ".") if len(patternParts) != len(incomingParts) {