From c2e39c5f41f072132167419617cd307e5e1ae034 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 18 Dec 2022 19:28:20 +0800 Subject: [PATCH] Update network.sh --- network.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/network.sh b/network.sh index 85133da..e0f1676 100644 --- a/network.sh +++ b/network.sh @@ -163,3 +163,8 @@ main_v6() { head main +# ping 测试 +if ping -c 3 google.com &> /dev/null || ping -c 3 github.com &> /dev/null; then + echo "V4网络恢复成功" + return +fi