From 07a00bd4b0e7e0507d29f818545772f65b1c8347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 3 Apr 2020 17:42:47 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 84ae251..eeb2dc6 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -461,7 +461,7 @@ class HttpClient { $client = new SClient($host, $this->getHostPort(), $this->isSSL); - $client->set($this->settings()); +// $client->set($this->settings()); if (!empty($this->agent)) { $this->header['User-Agent'] = $this->agent; } @@ -511,6 +511,7 @@ class HttpClient if (empty($sslCert) || empty($sslKey) || empty($sslCa)) { return []; } + $params['ssl_host_name'] = $this->host; $params['ssl_cert_file'] = $this->getSslCertFile(); $params['ssl_key_file'] = $this->getSslKeyFile();