Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/settings/lib/SetupChecks/InternetConnectivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function run(): SetupResult {
}

$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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
foreach ($siteArray as $site) {
shuffle($siteArray);
foreach ($siteArray as $site) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we prefer to default to the same one always and avoid random behavior.

Expand All @@ -67,7 +67,7 @@ private function isSiteReachable(string $site): bool {
}
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',
Expand Down
Loading