From 0dcf0514c8703159331b28ff4c34f07e4be76e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 14:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/ClientAbstracts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Client/ClientAbstracts.php b/HttpServer/Client/ClientAbstracts.php index 9a21447f..e1a30d59 100644 --- a/HttpServer/Client/ClientAbstracts.php +++ b/HttpServer/Client/ClientAbstracts.php @@ -8,6 +8,7 @@ use Closure; use Exception; use Snowflake\Abstracts\Component; use Snowflake\Core\Help; +use Swoole\Coroutine; use Swoole\Coroutine\System; @@ -722,7 +723,7 @@ abstract class ClientAbstracts extends Component implements IClient } if (isIp($domain)) { $this->host = $domain; - } else { + } else if ($this->use_swoole) { $this->host = System::gethostbyname($domain) ?? $domain; }