Fixes explode for trusted proxy

This commit is contained in:
snipe 2017-04-27 07:09:23 -07:00
parent 5ad9e8585d
commit 8ba19aa855

View file

@ -24,19 +24,20 @@ return [
* how many proxies that client's request has
* subsequently passed through.
*/
'proxies' => env('APP_TRUSTED_PROXIES') !== null ? explode(env('APP_TRUSTED_PROXIES'), ',') : '*',
'proxies' => env('APP_TRUSTED_PROXIES') !== null ?
explode(',', env('APP_TRUSTED_PROXIES')) : '*',
/*
* Or, to trust all proxies that connect
* directly to your server, uncomment this:
*/
# 'proxies' => '*',
// 'proxies' => '*',
/*
* Or, to trust ALL proxies, including those that
* are in a chain of fowarding, uncomment this:
* are in a chain of forwarding, uncomment this:
*/
# 'proxies' => '**',
// 'proxies' => '**',
/*
* Default Header Names