mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-28 19:46:17 +00:00
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:
parent
fab35a6190
commit
ad81624b6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user