update duplicated function last is_ipv4 to is_ipv6