From 89ba6effeb6c3eb1198bed49f4cd9d15bfa43310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 24 Dec 2021 14:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Client.php | 2 +- src/Curl.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Client.php b/src/Client.php index 47a669d..a38488b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -25,7 +25,7 @@ class Client if (Context::inCoroutine()) { $this->abstracts = new CoroutineClient($host, $port, $isSsl); } else { - $this->abstracts = new AsyncClient($host, $port, $isSsl); + $this->abstracts = new Curl($host, $port, $isSsl); } } diff --git a/src/Curl.php b/src/Curl.php index 6a76571..1d9c3fa 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -74,9 +74,6 @@ class Curl extends ClientAbstracts */ private function curlHandlerSslSet(): void { - curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, $this->getVerifyPeer()); - curl_setopt($this->client, CURLOPT_VERBOSE, TRUE); -// 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()); }