Skip to content

Commit bd2e630

Browse files
authored
Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost
dont show trusted proxy warning when the proxy and remote are both localhost
2 parents 68d3640 + cc0cc68 commit bd2e630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/settings/lib/Controller/CheckSetupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private function forwardedForHeadersWorking() {
319319
return false;
320320
}
321321

322-
if (\is_array($trustedProxies) && \in_array($remoteAddress, $trustedProxies, true)) {
322+
if (\is_array($trustedProxies) && \in_array($remoteAddress, $trustedProxies, true) && $remoteAddress !== '127.0.0.1') {
323323
return $remoteAddress !== $this->request->getRemoteAddress();
324324
}
325325

0 commit comments

Comments
 (0)