mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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
|
* how many proxies that client's request has
|
||||||
* subsequently passed through.
|
* 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
|
* Or, to trust all proxies that connect
|
||||||
* directly to your server, uncomment this:
|
* directly to your server, uncomment this:
|
||||||
*/
|
*/
|
||||||
# 'proxies' => '*',
|
// 'proxies' => '*',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Or, to trust ALL proxies, including those that
|
* 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
|
* Default Header Names
|
||||||
|
|
Loading…
Reference in a new issue