From bf7d401158ee9ebf96bf8d65caf6a6f03ec413f7 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Dec 2021 05:56:06 +0800 Subject: [PATCH] 1 --- src/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Curl.php b/src/Curl.php index a1333a5..10b9049 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -75,7 +75,7 @@ class Curl extends ClientAbstracts private function curlHandlerSslSet(): void { 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())) { curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile()); }