aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2024-08-12 07:27:38 +0000
committerGitHub <[email protected]>2024-08-12 07:27:38 +0000
commitb57989319a7a495e91d3f816e4b942660945cd78 (patch)
treed0770c3a7ff000716f3701b62332a362962ff20c
parent7cf8376e638948490be3e9eb5c7d58ce2a4b93b3 (diff)
downloadcaddy-fix-sni-matcher-replacing.tar.gz
caddy-fix-sni-matcher-replacing.zip
tls: replace only known placeholders in sni matcherfix-sni-matcher-replacing
-rw-r--r--modules/caddytls/matchers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddytls/matchers.go b/modules/caddytls/matchers.go
index f94622374..d1ab588ed 100644
--- a/modules/caddytls/matchers.go
+++ b/modules/caddytls/matchers.go
@@ -60,7 +60,7 @@ func (m MatchServerName) Match(hello *tls.ClientHelloInfo) bool {
}
for _, name := range m {
- rs := repl.ReplaceAll(name, "")
+ rs := repl.ReplaceKnown(name, "")
if certmagic.MatchWildcard(hello.ServerName, rs) {
return true
}