load_ipv6_addresses_from_file

Function load_ipv6_addresses_from_file 

Source
pub async fn load_ipv6_addresses_from_file(
    file: &PathBuf,
) -> Result<Vec<[u8; 16]>, String>
Expand description

Load IPv6 addresses from a file asynchronously, one per line

§Arguments

  • file - Path to the file containing IPv6 addresses

§Returns

  • Result<Vec<[u8; 16]>, String> - Vector of IPv6 addresses as byte arrays

§Format

  • One IPv6 address per line
  • Empty lines and lines starting with ‘#’ are ignored
  • Addresses can be in any valid IPv6 format (e.g., 2001:db8::1, ::1, etc.)