Merge pull request #8557 from fashberg/develop

Fixed #8543: Change trustedproxy.php to read env('APP_TRUSTED_PROXIES') again
This commit is contained in:
snipe 2020-10-21 11:19:23 -07:00 committed by GitHub
commit 7869ffcc79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,8 @@ return [
* how many proxies that client's request has
* 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