From 432747506224661733e17a2df86d0da313ae9dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20K=C3=B6hler?= Date: Fri, 4 Sep 2020 14:48:53 +0200 Subject: [PATCH] fixed proxy for getting latest version (#805) --- src/Console/ChromeDriverCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Console/ChromeDriverCommand.php b/src/Console/ChromeDriverCommand.php index d372ffb32..249e6460a 100644 --- a/src/Console/ChromeDriverCommand.php +++ b/src/Console/ChromeDriverCommand.php @@ -175,6 +175,10 @@ protected function latestVersion() ], ]; } + + if ($this->option('proxy')) { + $streamOptions['http'] = ['proxy' => $this->option('proxy'), 'request_fulluri' => true]; + } return trim(file_get_contents($this->latestVersionUrl, false, stream_context_create($streamOptions))); }