Skip to main content

to_target_map

Function to_target_map 

Source
pub fn to_target_map(
    targets: &[String],
    global_ports: PortSet,
    resolver: Option<ResolverFn>,
) -> Result<TargetMap, Error>
Expand description

Parses a list of target strings (e.g. ["1.1.1.1:80,443", "8.8.8.8"]) into a TargetMap. Combines per-target specified ports, or falls back to global_ports.