Skip to content

Commit

Permalink
verify host fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Olav van Schie committed Dec 31, 2019
1 parent b78fc66 commit 0807d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/opcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'url' => env('OPCACHE_URL', config('app.url')),
'prefix' => 'opcache-api',
'verify_ssl' => true,
'verify_host' => true,
'verify_host' => 2, // 0 for disabled
'headers' => [],
'directories' => [
base_path('app'),
Expand Down
2 changes: 1 addition & 1 deletion src/CreatesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait CreatesRequest
public function sendRequest($url, $parameters = [])
{
return Lush::headers(config('opcache.headers'))
->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host',true)])
->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host',2)])
->get(config('opcache.url').'/'. config('opcache.prefix') . '/'.$url,
array_merge(['key' => Crypt::encrypt('opcache')], $parameters)
);
Expand Down

0 comments on commit 0807d57

Please sign in to comment.