mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 09:22:18 +08:00
Update network.sh
This commit is contained in:
parent
c2e39c5f41
commit
f2e923be27
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user