Skip to main content

interleave_address_families

Function interleave_address_families 

Source
pub fn interleave_address_families(addrs: Vec<SocketAddr>) -> Vec<SocketAddr>
Expand description

Interleave IPv6 and IPv4 candidates (IPv6 first within each pair).

Prefer dual-stack interleave over “all AAAA then all A” so a dead IPv6 path does not delay every IPv4 attempt until the full v6 list is exhausted.