Merge pull request #55321 from nextcloud/fix/improve-connectivity-check

Improve connectivity check
carl/palm-level-3
Côme Chilliet 1 week ago committed by GitHub
commit 407cc43069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      apps/settings/lib/SetupChecks/InternetConnectivity.php

@ -41,7 +41,7 @@ class InternetConnectivity implements ISetupCheck {
}
$siteArray = $this->config->getSystemValue('connectivity_check_domains', [
'https://www.nextcloud.com', 'https://www.startpage.com', 'https://www.eff.org', 'https://www.edri.org'
'https://connectivity.nextcloud.com', 'https://www.eff.org', 'https://edri.org'
]);
foreach ($siteArray as $site) {
@ -67,7 +67,7 @@ class InternetConnectivity implements ISetupCheck {
}
try {
$client = $this->clientService->newClient();
$client->get($site);
$client->head($site);
} catch (\Exception $e) {
$this->logger->error('Cannot connect to: ' . $site, [
'app' => 'internet_connection_check',

Loading…
Cancel
Save