diff options
author | Mohammed Al Sahaf <[email protected]> | 2024-08-12 07:27:38 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-12 07:27:38 +0000 |
commit | b57989319a7a495e91d3f816e4b942660945cd78 (patch) | |
tree | d0770c3a7ff000716f3701b62332a362962ff20c | |
parent | 7cf8376e638948490be3e9eb5c7d58ce2a4b93b3 (diff) | |
download | caddy-b57989319a7a495e91d3f816e4b942660945cd78.tar.gz caddy-b57989319a7a495e91d3f816e4b942660945cd78.zip |
tls: replace only known placeholders in sni matcherfix-sni-matcher-replacing
-rw-r--r-- | modules/caddytls/matchers.go | 2 |
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 } |