diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 7ece337..0c9e20b 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -317,6 +317,10 @@ class HttpClient return false; } + if (!empty($this->host)) { + return $string; + } + if ($this->isHttp($string)) { $string = str_replace('http://', '', $string); $hostAndUrls = explode('/', $string); @@ -346,7 +350,6 @@ class HttpClient $this->host = System::gethostbyname($this->host); } - var_dump($this->host,$string); if (!$this->checkIsIp($this->host) && !$this->isDomainName($this->host)) { throw new Exception('Client Host error.'); }