Skip to content

Commit

Permalink
fixed proxy for getting latest version (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskoehler authored Sep 4, 2020
1 parent 7ceade3 commit 4327475
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Console/ChromeDriverCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 4327475

Please sign in to comment.