This commit is contained in:
2021-12-11 05:56:06 +08:00
parent 5e271a6e0a
commit bf7d401158
+1 -1
View File
@@ -75,7 +75,7 @@ class Curl extends ClientAbstracts
private function curlHandlerSslSet(): void private function curlHandlerSslSet(): void
{ {
curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, $this->getHost());
if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) { if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) {
curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile()); curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile());
} }