Skip to content

Commit

Permalink
Fallback to not verifying peer
Browse files Browse the repository at this point in the history
  • Loading branch information
minecrafter committed Mar 24, 2017
1 parent af2a3b3 commit ed50a45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Buycraft/PocketMine/PluginApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ private function initializeCurl($url)
{
curl_setopt($ctx, CURLOPT_CAINFO, $this->dataFolder . "comodo_ecc.pem");
}
else
{
curl_setopt($ctx, CURLOPT_SSL_VERIFYPEER, false);
}
curl_setopt($ctx, CURLOPT_TIMEOUT, 5);
return $ctx;
}
Expand Down

0 comments on commit ed50a45

Please sign in to comment.