Is it possible to force each account to use it's specified IP and IP version for cURL requests?
For example, I have an account which is not enabled for IPv6 and it is set to use the global IPv4 address. However if you do a curl to a google service, and that server supports IPv6, the request will be made through the server's global IPv6 address. This results in authentication errors.
Using
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4
is a good work around, but it seems like each account should use it's set IP. In the future, if I want to enable IPv6 for that account, I will have to go through the code to update it, rather than just changing a setting in WHM.
For example, I have an account which is not enabled for IPv6 and it is set to use the global IPv4 address. However if you do a curl to a google service, and that server supports IPv6, the request will be made through the server's global IPv6 address. This results in authentication errors.
Using
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4
is a good work around, but it seems like each account should use it's set IP. In the future, if I want to enable IPv6 for that account, I will have to go through the code to update it, rather than just changing a setting in WHM.