Skip to content

Commit 407cc43

Browse files
authored
Merge pull request #55321 from nextcloud/fix/improve-connectivity-check
Improve connectivity check
2 parents 6181754 + 1c4276e commit 407cc43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/settings/lib/SetupChecks/InternetConnectivity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function run(): SetupResult {
4141
}
4242

4343
$siteArray = $this->config->getSystemValue('connectivity_check_domains', [
44-
'https://www.nextcloud.com', 'https://www.startpage.com', 'https://www.eff.org', 'https://www.edri.org'
44+
'https://connectivity.nextcloud.com', 'https://www.eff.org', 'https://edri.org'
4545
]);
4646

4747
foreach ($siteArray as $site) {
@@ -67,7 +67,7 @@ private function isSiteReachable(string $site): bool {
6767
}
6868
try {
6969
$client = $this->clientService->newClient();
70-
$client->get($site);
70+
$client->head($site);
7171
} catch (\Exception $e) {
7272
$this->logger->error('Cannot connect to: ' . $site, [
7373
'app' => 'internet_connection_check',

0 commit comments

Comments
 (0)