mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFwarp.sh
This commit is contained in:
parent
d48e0bdb12
commit
08a016ec4b
11
CFwarp.sh
11
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
|
||||
|
|
Loading…
Reference in New Issue