diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index acbe7f6..e0ec02a 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; }