diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-12 13:32:51 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-02-12 13:32:51 +0100 |
commit | cc0cc68c8d3e2fa2e4d072ca156b889aad2e5313 (patch) | |
tree | 1178fd4d26af5f050b9a1583d6daab765bae13c4 /apps | |
parent | 361f160d0daa4c3baf84c801118c0d85886aa6d9 (diff) | |
download | nextcloud-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.php | 2 |
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(); } |