Skip to content
Snippets Groups Projects
Unverified Commit fe79a1ad authored by Morris Jobke's avatar Morris Jobke
Browse files

Harden setup check for TLS version if host is not reachable


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent d8b8c989
No related branches found
No related tags found
No related merge requests found
...@@ -262,6 +262,9 @@ class CheckSetupController extends Controller { ...@@ -262,6 +262,9 @@ class CheckSetupController extends Controller {
if ($e->getResponse()->getStatusCode() === 400) { if ($e->getResponse()->getStatusCode() === 400) {
return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['NSS', $versionString, $features]); return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['NSS', $versionString, $features]);
} }
} catch (\Exception $e) {
$this->logger->logException($e, ['app' => 'settings', 'level' => \OCP\ILogger::WARN]);
return $this->l10n->t('Could not determine if TLS version of cURL is outdated or not because an error happened during the HTTPS request against https://nextcloud.com. Please check the nextcloud log file for more details.');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment