-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Peter Jung <[email protected]>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
// 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit picks
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"] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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