From 424634ee2b98d29ce30b4c5d2268067e7b895fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 31 Mar 2020 15:14:35 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index ed585ee..afa81c6 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -263,6 +263,7 @@ class HttpClient if ($this->checkIsIp($host)) { return $host; } + $this->host = $host; return System::gethostbyname($host); } @@ -395,6 +396,7 @@ class HttpClient echo $this->ssl_cert_file . PHP_EOL; echo $this->ssl_key_file . PHP_EOL; $client->set([ + 'Host' => $this->host, 'ssl_cert_file' => $this->ssl_cert_file, 'ssl_key_file' => $this->ssl_key_file, ]);