mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFwarp.sh
This commit is contained in:
parent
ec886894e8
commit
60239e2069
12
CFwarp.sh
12
CFwarp.sh
|
@ -549,12 +549,6 @@ elif [[ $release = Debian ]]; then
|
||||||
fi
|
fi
|
||||||
[[ $(warp-cli --accept-tos status 2>/dev/null) =~ 'Connected' ]] && red "当前Socks5-WARP已经在运行中" && bash CFwarp.sh
|
[[ $(warp-cli --accept-tos status 2>/dev/null) =~ 'Connected' ]] && red "当前Socks5-WARP已经在运行中" && bash CFwarp.sh
|
||||||
|
|
||||||
|
|
||||||
checkwgcf
|
|
||||||
if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
systemctl stop wg-quick@wgcf >/dev/null 2>&1
|
systemctl stop wg-quick@wgcf >/dev/null 2>&1
|
||||||
v4v6
|
v4v6
|
||||||
if [[ -n $v6 && -z $v4 ]]; then
|
if [[ -n $v6 && -z $v4 ]]; then
|
||||||
|
@ -571,9 +565,9 @@ checkwgcf
|
||||||
fi
|
fi
|
||||||
systemctl start wg-quick@wgcf >/dev/null 2>&1
|
systemctl start wg-quick@wgcf >/dev/null 2>&1
|
||||||
checkwgcf
|
checkwgcf
|
||||||
[[ $wgcfv4 =~ on|plus && $wgcfv6 =~ on|plus ]] && red "已安装Wgcf-WARP-IPV4+IPV6(选项3),不支持安装Socks5-WARP" && bash CFwarp.sh
|
if [[ $wgcfv4 =~ on|plus && $wgcfv6 =~ on|plus ]]; then
|
||||||
|
red "已安装Wgcf-WARP-IPV4+IPV6(选项3),不支持安装Socks5-WARP" && bash CFwarp.sh
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $release = Centos ]]; then
|
if [[ $release = Centos ]]; then
|
||||||
if [[ ${vsid} =~ 8 ]]; then
|
if [[ ${vsid} =~ 8 ]]; then
|
||||||
|
|
Loading…
Reference in New Issue