Use the right variable for IPv6 check