Skip to main content

drop_udp_duplicates

Function drop_udp_duplicates 

Source
pub(super) fn drop_udp_duplicates(instances: &mut HashMap<String, LanInstance>)
Expand description

Remove UDP-learned entries that an mDNS entry now covers (the same address and port). Called after an mDNS resolution so the order the two routes find a peer in does not decide whether it is listed twice. Instance ids are not compared: they are per release, not per machine (see udp_key).