Skip to main content

parse_p2p

Function parse_p2p 

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

Parse a P2P plaintext format blocklist.

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

ยงErrors

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