Skip to content

installer: Add fallback ping checks for the internet check #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

ptr1337
Copy link
Member

@ptr1337 ptr1337 commented Jul 19, 2025

In censored countries it is often not possible to ping "cachyos.org" since we are using cloudflare proxy for the website.

Add a fallback ping of 1.1.1.1 (Cloudflare), 8.8.8.8 (Cloudflare), 9.9.9.9 (Quad 9) for the internet check

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances internet connectivity checking in the installer by adding fallback ping tests when the primary HTTP check fails. This addresses accessibility issues in censored countries where the main CachyOS website may be blocked due to Cloudflare proxy usage.

  • Restructures connectivity check to try HTTP first, then fallback to ping tests
  • Adds ping tests to three reliable DNS servers (Google, Cloudflare, Quad9)
  • Improves connectivity detection reliability in restrictive network environments

}
true

// If HTTP check fails, try ping fallback to reliable DNS servers
Copy link
Preview

Copilot AI Jul 19, 2025

Choose a reason for hiding this comment

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

The comment on line 109 mentions '8.8.8.8 (Cloudflare)' but 8.8.8.8 is actually Google's DNS server, not Cloudflare's. 1.1.1.1 is Cloudflare's DNS server.

Suggested change
// If HTTP check fails, try ping fallback to reliable DNS servers
// If HTTP check fails, try ping fallback to reliable DNS servers (8.8.8.8 - Google, 1.1.1.1 - Cloudflare, 9.9.9.9 - Quad9)

Copilot uses AI. Check for mistakes.

Copy link
Member

@vnepogodin vnepogodin left a comment

Choose a reason for hiding this comment

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

nit picks

ptr1337 and others added 6 commits July 20, 2025 13:55
Co-authored-by: Vladislav Nepogodin <[email protected]>
Co-authored-by: Vladislav Nepogodin <[email protected]>
Co-authored-by: Vladislav Nepogodin <[email protected]>
Co-authored-by: Vladislav Nepogodin <[email protected]>
Co-authored-by: Vladislav Nepogodin <[email protected]>
Co-authored-by: Vladislav Nepogodin <[email protected]>

// If HTTP check fails, try ping fallback to reliable DNS servers

for target in ["8.8.8.8", "1.1.1.1", "9.9.9.9"] {

Choose a reason for hiding this comment

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

Suggested change
for target in ["8.8.8.8", "1.1.1.1", "9.9.9.9"] {
for target in ["2001:4860:4860::8888", "2606:4700:4700::1111", "2620:fe::fe", "8.8.8.8", "1.1.1.1", "9.9.9.9"] {

Add IPv6 targets and prefer them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants