Use more private options for checking Internet connectivity.

This commit is contained in:
me committed 2026-10-29 19:28:07 -07:00
1 parent 68b703ff7e
commit f671e3d94d
1 file changed
+2 -2
+2 -2
View File
@@ -51,10 +51,10 @@ fi
# Internet connectivity check # Internet connectivity check
############################################################################### ###############################################################################
check_internet() { check_internet() {
if curl -s --max-time 5 -o /dev/null https://www.google.com/generate_204; then if curl -s --max-time 5 -o /dev/null https://hyperling,com; then
return 0 return 0
fi fi
if curl -s --max-time 5 -o /dev/null https://captive.apple.com/hotspot-detect.html; then if curl -s --max-time 5 -o /dev/null https://mullvad.net; then
return 0 return 0
fi fi
return 1 return 1