From 2b9bced512d02cd5e6ba7c779fae1d6b4c207f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 24 Sep 2020 11:36:29 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index e0ec02a..acbe7f6 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -346,9 +346,9 @@ class HttpClient $this->host = System::gethostbyname($this->host); } - if (!$this->checkIsIp($this->host) && !$this->isDomainName($this->host)) { - throw new Exception('Client Host error.'); - } +// if (!$this->checkIsIp($this->host) && !$this->isDomainName($this->host)) { +// throw new Exception('Client Host error.'); +// } return $string; }