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();