mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
TrustProxies natively supports , strings
This commit is contained in:
parent
cb6e8a4eaa
commit
64af65e992
1 changed files with 1 additions and 9 deletions
|
@ -1,13 +1,5 @@
|
|||
<?php
|
||||
|
||||
$proxyString = env('TRUST_PROXIES', '');
|
||||
|
||||
if ($proxyString == '*' || $proxyString == '**') {
|
||||
$proxies = $proxyString;
|
||||
} else {
|
||||
$proxies = explode(',', $proxyString);
|
||||
}
|
||||
|
||||
return [
|
||||
/*
|
||||
* Set trusted proxy IP addresses.
|
||||
|
@ -31,5 +23,5 @@ return [
|
|||
* how many proxies that client's request has
|
||||
* subsequently passed through.
|
||||
*/
|
||||
'proxies' => $proxies,
|
||||
'proxies' => env('TRUST_PROXIES', ''),
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue