This commit is contained in:
2021-12-24 14:47:12 +08:00
parent 29e520b412
commit 89ba6effeb
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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);
}
}
-3
View File
@@ -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());
}