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))); }