Skip to content

Commit

Permalink
Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost
Browse files Browse the repository at this point in the history
dont show trusted proxy warning when the proxy and remote are both localhost
  • Loading branch information
rullzer authored Apr 1, 2021
2 parents 68d3640 + cc0cc68 commit bd2e630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/Controller/CheckSetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private function forwardedForHeadersWorking() {
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();
}

Expand Down

0 comments on commit bd2e630

Please sign in to comment.