From 65958a0ded87829e8b0a45f63e5772b92b104f6c Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Dec 2021 16:14:27 +0800 Subject: [PATCH] 1 --- src/Curl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Curl.php b/src/Curl.php index 5c858cb..b0a2e58 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -74,6 +74,8 @@ class Curl extends ClientAbstracts */ private function curlHandlerSslSet(): void { + curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, $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()); }