adding curlsetopt for ipv6