Do it differently for IPv6 and IPv4