add ipv6 detection