Skip to main content

probe_tls

Function probe_tls 

Source
fn probe_tls(config: &Config, proxy: &ProxySnapshot) -> Result
Expand description

Fails startup when an HTTPS client cannot be constructed.

The clients are built lazily on first use, so a platform trust store that yields no roots surfaces as a panic inside whichever worker reaches for a client first. Probing once at startup turns that into a legible boot error.