base: removed redundant code from is_ipv6