Skip to content

Commit

Permalink
on corrige la gestion du trusted proxies
Browse files Browse the repository at this point in the history
La variable d'environnement continent une liste séparée par des virgules,
on doit l'exploder pour la passer au tableau.
  • Loading branch information
agallou committed Nov 27, 2024
1 parent a4e9d1e commit e775098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
];
$ccReverseProxyIps = getenv('CC_REVERSE_PROXY_IPS');
if (false !== $ccReverseProxyIps) {
$proxies[] = $ccReverseProxyIps;
$proxies = array_merge($proxies, explode(',', $ccReverseProxyIps));
}

Request::setTrustedProxies(
Expand Down

0 comments on commit e775098

Please sign in to comment.