Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost

dont show trusted proxy warning when the proxy and remote are both localhost
pull/26396/head
Roeland Jago Douma 5 years ago committed by GitHub
commit bd2e6309b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/settings/lib/Controller/CheckSetupController.php

@ -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…
Cancel
Save