Update toggle_ipv6.sh

Updated IPv6 check.