mirror of
https://github.com/nextcloud/server.git
synced 2026-03-24 03:13:36 -04:00
Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost
dont show trusted proxy warning when the proxy and remote are both localhost
This commit is contained in:
commit
bd2e6309b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue