From 3691720c299ad6669c4dd3ee5ad34d8c3e8cd417 Mon Sep 17 00:00:00 2001 From: Cyrille Giquello Date: Tue, 24 Dec 2019 15:59:18 +0100 Subject: [PATCH 1/2] add option 'verify_host' --- src/CreatesRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CreatesRequest.php b/src/CreatesRequest.php index 39f4ba1..040a918 100644 --- a/src/CreatesRequest.php +++ b/src/CreatesRequest.php @@ -14,7 +14,7 @@ trait CreatesRequest */ public function sendRequest($url) { - return Lush::headers(config('opcache.headers'))->options(['verify_ssl' => config('opcache.verify_ssl')])->get(config('opcache.url').'/opcache-api/'.$url, + return Lush::headers(config('opcache.headers'))->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host')])->get(config('opcache.url').'/opcache-api/'.$url, ['key' => Crypt::encrypt('opcache')] ); } From ab2ee72aa49dd06c8f98e80c14631784b3d85b99 Mon Sep 17 00:00:00 2001 From: Cyrille Giquello Date: Tue, 24 Dec 2019 16:00:14 +0100 Subject: [PATCH 2/2] add option verify_host --- config/opcache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/opcache.php b/config/opcache.php index 84887f3..8b963af 100644 --- a/config/opcache.php +++ b/config/opcache.php @@ -3,6 +3,7 @@ return [ 'url' => env('OPCACHE_URL', config('app.url')), 'verify_ssl' => true, + 'verify_host' => true, 'headers' => [], 'directories' => [ base_path('app'),