mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 21:49:43 -04:00
Improve wrong configuration error message when we know it’s wrong.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
0ebd44abb6
commit
f47a2bbcae
1 changed files with 2 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ class ForwardedForHeaders implements ISetupCheck {
|
|||
}
|
||||
|
||||
if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') {
|
||||
return SetupResult::warning(
|
||||
$this->l10n->t('The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud.'),
|
||||
return SetupResult::error(
|
||||
$this->l10n->t('The reverse proxy header configuration is incorrect. This is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud.'),
|
||||
$this->urlGenerator->linkToDocs('admin-reverse-proxy')
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue