Browse Source

Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost

dont show trusted proxy warning when the proxy and remote are both localhost
tags/v22.0.0beta1
Roeland Jago Douma 3 years ago
parent
commit
bd2e6309b5
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/settings/lib/Controller/CheckSetupController.php

+ 1
- 1
apps/settings/lib/Controller/CheckSetupController.php View File

@@ -319,7 +319,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