Skip to content

Commit

Permalink
Merge pull request gravityplus#237 from gmcinnes/force_ip4_curl
Browse files Browse the repository at this point in the history
Force IP4 curl connections to Salesforce. props @gmcinnes !
  • Loading branch information
zackkatz committed Sep 4, 2015
2 parents 3be41a0 + c1a23fe commit c9e1375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/inc/salesforce-api.php
Expand Up @@ -318,6 +318,9 @@ static private function getSalesforceService() {
);

$client = new CurlClient;
// Salesforce doesn't support IP6, so force IP4
$client->setCurlParameters( array( CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4 ));

$storage = new WordPressMemory;

// We want API access for the plugin, also the ability to refresh the token.
Expand Down

0 comments on commit c9e1375

Please sign in to comment.