From 08a016ec4b61964d8ecac045c3849fd8423775b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Thu, 30 Mar 2023 03:17:28 +0000 Subject: [PATCH] Update CFwarp.sh --- CFwarp.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CFwarp.sh b/CFwarp.sh index 9cad90e..551aee9 100644 --- a/CFwarp.sh +++ b/CFwarp.sh @@ -327,7 +327,18 @@ wait cd checkpt else +checkwgcf +if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then checkpt +else +systemctl stop wg-quick@wgcf >/dev/null 2>&1 +kill -15 $(pgrep warp-go) >/dev/null 2>&1 && sleep 2 +checkpt +systemctl start wg-quick@wgcf >/dev/null 2>&1 +systemctl restart warp-go >/dev/null 2>&1 +systemctl enable warp-go >/dev/null 2>&1 +systemctl start warp-go >/dev/null 2>&1 +fi fi } warpip