mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
dont show trusted proxy warning when the proxy and remote are both localhost
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user