Update network.sh

This commit is contained in:
spiritLHLS 2022-12-18 19:28:39 +08:00 committed by GitHub
parent c2e39c5f41
commit f2e923be27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ main_v6() {
# ping 测试 # ping 测试
if ping -c 3 google.com &> /dev/null || ping -c 3 github.com &> /dev/null; then if ping -c 3 google.com &> /dev/null || ping -c 3 github.com &> /dev/null; then
echo "网络恢复成功" green "网络恢复成功"
return return
fi fi
done done
@ -165,6 +165,5 @@ head
main main
# ping 测试 # ping 测试
if ping -c 3 google.com &> /dev/null || ping -c 3 github.com &> /dev/null; then if ping -c 3 google.com &> /dev/null || ping -c 3 github.com &> /dev/null; then
echo "V4网络恢复成功" green "V4网络恢复成功"
return
fi fi