add clear

This commit is contained in:
2020-09-24 11:36:29 +08:00
parent 421c6ecf31
commit 2b9bced512
+3 -3
View File
@@ -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;
}