This commit is contained in:
2021-12-11 16:19:09 +08:00
parent 3491ff8df2
commit eec1efcb61
+1 -1
View File
@@ -74,7 +74,7 @@ class Curl extends ClientAbstracts
*/
private function curlHandlerSslSet(): void
{
curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, $this->getVerifyPeer());
curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, $this->getVerifyPeer());
// curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, $this->getVerifyPeer());
if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) {
curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile());