This commit is contained in:
2021-12-24 14:39:21 +08:00
parent 33fc0ae396
commit 6c71437e9e
+1 -1
View File
@@ -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());
}