Skip to main content

lan_hosts

Function lan_hosts 

Source
pub fn lan_hosts(
    peers: &[LanInstance],
    own_addrs: &HashSet<IpAddr>,
    now_ms: u64,
) -> Vec<RemoteHost>
Expand description

LAN hosts from the discovery peer list. A peer at one of this machine’s own addresses is another channel on this host, which the registry already lists (with more detail), so it is left out here. A peer that did not advertise its channel (an older build) is labelled by its port, so two of them on one host stay apart.