mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixes explode for trusted proxy
This commit is contained in:
parent
5ad9e8585d
commit
8ba19aa855
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue