From ad81624b6cd75e272405c99823b399582081167b Mon Sep 17 00:00:00 2001 From: infinisean <45185805+infinisean@users.noreply.github.com> Date: Sun, 24 Nov 2024 04:27:54 -0500 Subject: [PATCH] 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. --- misc/install.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/install.func b/misc/install.func index 2a22e2ff..496cd5de 100644 --- a/misc/install.func +++ b/misc/install.func @@ -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