summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-02-12 13:32:51 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-08-11 21:12:42 +0000
commit33deabcf01e75ce6a5148c5bbcd04d809e943034 (patch)
treea21afdee6272f5f6c51bb3fa330733ccfe683cfb /apps/settings/lib
parent514ba5f419b39740e6525a35d0eb3dd1ba989d24 (diff)
downloadnextcloud-server-33deabcf01e75ce6a5148c5bbcd04d809e943034.tar.gz
nextcloud-server-33deabcf01e75ce6a5148c5bbcd04d809e943034.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/settings/lib')
-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 e7cb2610f11..49102037084 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();
}