mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #28387 from nextcloud/backport/25605/stable20
[stable20] dont show trusted proxy warning when the proxy and remote are both localhost
This commit is contained in:
commit
aec579b0cd
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,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