Update CFwarp.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-03-30 03:17:28 +00:00
parent d48e0bdb12
commit 08a016ec4b
1 changed files with 11 additions and 0 deletions

View File

@ -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