fix ip6 detection