dont show trusted proxy warning when the proxy and remote are both localhost

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/28386/head
Robin Appelman 2021-02-12 13:32:51 +07:00 committed by backportbot[bot]
parent 514ba5f419
commit 33deabcf01
1 changed files with 1 additions and 1 deletions

@ -313,7 +313,7 @@ class CheckSetupController extends Controller {
return false;
}
if (\is_array($trustedProxies) && \in_array($remoteAddress, $trustedProxies, true)) {
if (\is_array($trustedProxies) && \in_array($remoteAddress, $trustedProxies, true) && $remoteAddress !== '127.0.0.1') {
return $remoteAddress !== $this->request->getRemoteAddress();
}