From e512260bfd0eced3f533770b0a3b960f123d3172 Mon Sep 17 00:00:00 2001 From: Olav van Schie Date: Tue, 31 Dec 2019 21:06:57 +0100 Subject: [PATCH] verify host fix # Conflicts: # src/CreatesRequest.php --- config/opcache.php | 2 +- src/CreatesRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/opcache.php b/config/opcache.php index 8b963af..2be79a1 100644 --- a/config/opcache.php +++ b/config/opcache.php @@ -3,7 +3,7 @@ return [ 'url' => env('OPCACHE_URL', config('app.url')), 'verify_ssl' => true, - 'verify_host' => true, + 'verify_host' => 2, // 0 for disabled 'headers' => [], 'directories' => [ base_path('app'), diff --git a/src/CreatesRequest.php b/src/CreatesRequest.php index 040a918..58a80ed 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'),'verify_host' => config('opcache.verify_host')])->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',2)])->get(config('opcache.url').'/opcache-api/'.$url, ['key' => Crypt::encrypt('opcache')] ); }