Searched refs:ip_pair (Results 1 – 2 of 2) sorted by relevance
91 let ip_pair: Vec<&str> = ext_ip_str.split('/').collect(); in new() localVariable92 if ip_pair.is_empty() || ip_pair.len() > 2 { in new()96 let ext_ip = validate_ip_string(ip_pair[0])?; in new()97 if ip_pair.len() == 1 { in new()104 let loc_ip = validate_ip_string(ip_pair[1])?; in new()
248 let ip_pair: Vec<&str> = ip_str.split('/').collect(); in new() localVariable249 if let Ok(ip) = IpAddr::from_str(ip_pair[0]) { in new()250 if ip_pair.len() > 1 { in new()251 let loc_ip = IpAddr::from_str(ip_pair[1])?; in new()