Fix unreliable IPv4 internet check in install.func

Old check only tried a single IP address (1.1.1.1) which is not always online.
Added Google (8.8.8.8) and CloudFlare (9.9.9.9) publix resolvers so that if any of the three IPs are reachable, the test will succeed.
This commit is contained in:
infinisean 2024-11-24 04:27:54 -05:00 committed by GitHub
parent fab35a6190
commit ad81624b6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,7 +119,7 @@ network_check() {
ipv6_connected=false
sleep 1
# Check IPv4 connectivity
if ping -c 1 -W 1 1.1.1.1 &>/dev/null; then
if ping -c 1 -W 1 1.1.1.1 &>/dev/null || ping -c 1 -W 1 8.8.8.8 &>/dev/null || ping -c 1 -W 1 9.9.9.9 &>/dev/null; then
msg_ok "IPv4 Internet Connected";
ipv4_connected=true
else