Skip to main content

parse_dat

Function parse_dat 

Source
pub fn parse_dat(input: &str) -> Result<IpFilter, IpFilterError>
Expand description

Parse an eMule .dat format blocklist.

Format: first_ip - last_ip , level , description Lines starting with # are comments.

ยงErrors

Returns an error if the data cannot be parsed or I/O fails.