Update ip.lib

add support for ipv6 validation