mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-11 19:37:55 +00:00
Policy subjects and handshake names were compared without the IDNA Lookup normalization CertMagic applies to SNI, so a Unicode or mapped SNI could select the fallback issuer. Normalize both the same way, preserving wildcard labels and non-DNS subjects. Addresses scan report e804f22226c85b87. Code written by GitHub Copilot (GPT-6.1 Sol, Claude Opus 5.5); reviewed by mholt. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>