Skip to content

Commit

Permalink
Fixed ssl verification, closes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer authored Mar 23, 2019
1 parent d4a163c commit 4d8f3a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AutoUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,11 @@ protected function _downloadCurl($url)
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, $this->sslVerifyHost);
if ($this->sslVerifyHost) {
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
} else {
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
}
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, $this->sslVerifyHost);
$update = curl_exec($curl);

Expand Down

0 comments on commit 4d8f3a8

Please sign in to comment.