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