From 6c71437e9e03e479f724e4150c2c854a411de923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 24 Dec 2021 14:39:21 +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 --- src/AsyncClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncClient.php b/src/AsyncClient.php index 398bd68..e95abb9 100644 --- a/src/AsyncClient.php +++ b/src/AsyncClient.php @@ -84,7 +84,7 @@ class AsyncClient extends ClientAbstracts if ($isHttps || $this->isSSL()) { $this->client->enableSSL(); } - $this->client->set(array_merge($this->settings(), ['open_http_protocol' => true])); + $this->client->set(array_merge($this->settings(), ['http_proxy_host' => $host, 'http_proxy_port' => $this->getPort()])); if (!empty($this->getAgent())) { $this->withAddedHeader('User-Agent', $this->getAgent()); }