From 1687e4b850e183433fc97527701619da2490579a Mon Sep 17 00:00:00 2001 From: Folke Ashberg Date: Wed, 21 Oct 2020 09:49:39 +0200 Subject: [PATCH] Fix for Issue #8543 * trustedproxy.php sets 'proxies' again according to env('APP_TRUSTED_PROXIES') again --- config/trustedproxy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/trustedproxy.php b/config/trustedproxy.php index bde40fc7e..04e90ac2d 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -33,7 +33,8 @@ return [ * how many proxies that client's request has * subsequently passed through. */ - 'proxies' => null, // [,], '*' + 'proxies' => env('APP_TRUSTED_PROXIES') !== null ? + explode(',', env('APP_TRUSTED_PROXIES')) : '*', /* * To trust one or more specific proxies that connect