Fix for Issue #8543

* trustedproxy.php sets 'proxies' again according to
  env('APP_TRUSTED_PROXIES') again
This commit is contained in:
Folke Ashberg 2020-10-21 09:49:39 +02:00 committed by Folke Ashberg
parent c19f1b77b0
commit 1687e4b850
No known key found for this signature in database
GPG key ID: 86D89A9771903CB2

View file

@ -33,7 +33,8 @@ return [
* how many proxies that client's request has * how many proxies that client's request has
* subsequently passed through. * subsequently passed through.
*/ */
'proxies' => null, // [<ip addresses>,], '*' 'proxies' => env('APP_TRUSTED_PROXIES') !== null ?
explode(',', env('APP_TRUSTED_PROXIES')) : '*',
/* /*
* To trust one or more specific proxies that connect * To trust one or more specific proxies that connect