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

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/25605/head
Robin Appelman 3 years ago
parent 361f160d0d
commit cc0cc68c8d
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB

@ -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();
}

Loading…
Cancel
Save