Fix users that set a non-array for cors (#11921)

* Fix users that set a non-array for cors
combine two Env util classes

* Used the wrong thing.
This commit is contained in:
Tony Murray
2020-07-09 15:03:12 -05:00
committed by GitHub
parent a3ae3805d1
commit 0c334f130d
8 changed files with 53 additions and 80 deletions

View File

@@ -23,7 +23,7 @@ return [
* of your proxy (e.g. if using ELB or similar).
*
*/
'proxies' => \LibreNMS\Util\Env::parseArray('APP_TRUSTED_PROXIES', '*', ['', '*', '**']),
'proxies' => \LibreNMS\Util\EnvHelper::parseArray('APP_TRUSTED_PROXIES', '*', ['', '*', '**']),
/*
* To trust one or more specific proxies that connect