Skip to main content

Module sni

Module sni 

Source
Expand description

Peek at TLS ClientHello to extract SNI hostname without consuming bytes.

Used by the HTTPS listener to decide between local TLS termination and TCP pass-through to a fallback backend.

Functionsยง

parse_sni
Parse a TLS ClientHello byte slice and extract the SNI hostname.
peek_sni
Peek at the TLS ClientHello buffered on stream and return the SNI hostname.