Skip to main content

set_unicast_origins

Function set_unicast_origins 

Source
pub fn set_unicast_origins(origins: Vec<Origin>) -> Vec<Origin>
Expand description

Takes a list of origins, replaces any unicast placeholder addresses with the local address of the placeholder’s IP version, and returns the modified list of origins.

Drops unicast origins when no local unicast address of that version can be found.

§Arguments

  • origins - A vector of Origin structs to be modified.

§Returns

  • A vector of Origin structs with unicast placeholders replaced by local addresses.