From 6855e76c2b564f00e7c1c0e6ec3d18b8b4f3977a Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 12 Feb 2017 16:23:31 -0500 Subject: [PATCH] Fix @schrej's proxy code. --- config/trustedproxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/trustedproxy.php b/config/trustedproxy.php index a1fac334a..a06211497 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -24,7 +24,7 @@ return [ * how many proxies that client's request has * subsequently passed through. */ - 'proxies' => in_array(env('TRUSTED_PROXIES', ['*', '**'])) ? + 'proxies' => in_array(env('TRUSTED_PROXIES', []), ['*', '**']) ? env('TRUSTED_PROXIES') : explode(',', env('TRUSTED_PROXIES', null)), /*