Skip to main content

probe_targets

Function probe_targets 

Source
pub(super) fn probe_targets(
    broadcasts: impl IntoIterator<Item = Ipv4Addr>,
    port: u16,
) -> Vec<SocketAddr>
Expand description

Where to send a probe: the limited broadcast address, plus each non-loopback IPv4 interface’s directed broadcast. The limited broadcast alone leaves by one interface only on Windows, which is the wrong one on a host with a VPN or a virtual adapter (narko has four).