From cc0cc68c8d3e2fa2e4d072ca156b889aad2e5313 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 12 Feb 2021 13:32:51 +0100 Subject: [PATCH] dont show trusted proxy warning when the proxy and remote are both localhost Signed-off-by: Robin Appelman --- apps/settings/lib/Controller/CheckSetupController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index d732b13719..b660ab5a26 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -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(); }