summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-02-12 13:32:51 +0100
committerRobin Appelman <robin@icewind.nl>2021-02-12 13:32:51 +0100
commitcc0cc68c8d3e2fa2e4d072ca156b889aad2e5313 (patch)
tree1178fd4d26af5f050b9a1583d6daab765bae13c4 /apps
parent361f160d0daa4c3baf84c801118c0d85886aa6d9 (diff)
downloadnextcloud-server-cc0cc68c8d3e2fa2e4d072ca156b889aad2e5313.tar.gz
nextcloud-server-cc0cc68c8d3e2fa2e4d072ca156b889aad2e5313.zip
dont show trusted proxy warning when the proxy and remote are both localhost
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index d732b137199..b660ab5a262 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();
}