mirror of
https://github.com/pterodactyl/panel.git
synced 2024-10-27 20:32:28 +01:00
handle * and ** for TRUSTED_PROXIES
This commit is contained in:
parent
24650b67be
commit
7b659a773e
@ -24,7 +24,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' => explode(',', env('TRUSTED_PROXIES', null)),
|
'proxies' => in_array(env('TRUSTED_PROXIES', ['*', '**'])) ?
|
||||||
|
env('TRUSTED_PROXIES') : explode(',', env('TRUSTED_PROXIES', null)),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Or, to trust all proxies that connect
|
* Or, to trust all proxies that connect
|
||||||
|
Loading…
Reference in New Issue
Block a user