Big thanks to @FreedomBen for contributing some code to fix a couple edge cases. is_ipv4/1
, is_reserved/1
and is_rfc1918/1
properly handle nil
input. Also added the parse_ipv4_address
function which may be useful when sending ip address to Erlang functions like :gen_tcp.