add clear

This commit is contained in:
2020-09-24 11:37:28 +08:00
parent 2b9bced512
commit 2f2950e944
+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;
}