SIGN IN SIGN UP
caddyserver / caddy UNCLAIMED

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

0 0 103 Go

caddytls: skip idna.ToASCII for pure ASCII SNI values (#7770)

SNI is always ASCII on the wire (RFC 6066), and most config
patterns are also ASCII. For pure ASCII input, idna.ToASCII
only validates and lowercases, which is equivalent to a simple
strings.ToLower. Add a fast path to avoid the overhead of
idna.ToASCII in the common case.
G
gelsomino committed
86121c860f59fb109602497f603c02571464e3cf
Parent: 4d60d93
Committed by GitHub <noreply@github.com> on 5/28/2026, 1:18:09 AM