Added check for ipv6.