This commit is contained in:
2020-11-14 03:04:25 +08:00
parent 8319fac4b7
commit 13a56f3555
9 changed files with 75 additions and 74 deletions
-4
View File
@@ -363,10 +363,6 @@ class HttpClient
[$this->host, $this->port] = explode(':', $this->host);
}
if ($this->use_swoole) {
return $string;
}
if (!$this->checkIsIp($this->host) && Coroutine::getuid() > 0) {
$this->host = System::gethostbyname($this->host);
}