From 3fa23cc05a555d9125ce0edbedba72b4b059640b Mon Sep 17 00:00:00 2001 From: Rasheed Mudasiru Date: Sun, 14 Jun 2026 18:11:26 +0100 Subject: [PATCH] Handle wildcard host matching in matchers.go Signed-off-by: Rasheed Mudasiru --- modules/caddyhttp/matchers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 9f84a90da..ca55241ef 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -343,6 +343,9 @@ outer: host = repl.ReplaceAll(host, "") if strings.Contains(host, "*") { + if host == "*" { + return true, nil + } patternParts := strings.Split(host, ".") incomingParts := strings.Split(reqHost, ".") if len(patternParts) != len(incomingParts) {