From aebf9fa0f11b62d7dbc045b15a62cab907952fcc Mon Sep 17 00:00:00 2001 From: Cyrille Giquello Date: Tue, 24 Dec 2019 15:31:08 +0100 Subject: [PATCH 1/2] Add verify_host request option --- src/CreatesRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CreatesRequest.php b/src/CreatesRequest.php index 44bab4f..6ff1689 100644 --- a/src/CreatesRequest.php +++ b/src/CreatesRequest.php @@ -15,7 +15,7 @@ trait CreatesRequest public function sendRequest($url, $parameters = []) { return Lush::headers(config('opcache.headers')) - ->options(['verify_ssl' => config('opcache.verify_ssl')]) + ->options(['verify_ssl' => config('opcache.verify_ssl'),'verify_host' => config('opcache.verify_host',true)]) ->get(config('opcache.url').'/'. config('opcache.prefix') . '/'.$url, array_merge(['key' => Crypt::encrypt('opcache')], $parameters) ); From 5bfa1d68acf94bb42df38444ecca233b013d3807 Mon Sep 17 00:00:00 2001 From: Cyrille Giquello Date: Tue, 24 Dec 2019 15:32:14 +0100 Subject: [PATCH 2/2] add verify_host request option --- config/opcache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/opcache.php b/config/opcache.php index 92b064b..75b777e 100644 --- a/config/opcache.php +++ b/config/opcache.php @@ -4,6 +4,7 @@ 'url' => env('OPCACHE_URL', config('app.url')), 'prefix' => 'opcache-api', 'verify_ssl' => true, + 'verify_host' => true, 'headers' => [], 'directories' => [ base_path('app'),