mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFwarp.sh
This commit is contained in:
parent
59ae32e168
commit
b256410e12
26
CFwarp.sh
26
CFwarp.sh
|
@ -342,7 +342,7 @@ fi
|
||||||
|
|
||||||
uncf(){
|
uncf(){
|
||||||
if [[ -z $(type -P warp-go) && -z $(type -P wg-quick) && -z $(type -P warp-cli) ]]; then
|
if [[ -z $(type -P warp-go) && -z $(type -P wg-quick) && -z $(type -P warp-cli) ]]; then
|
||||||
rm -rf /root/CFwarp.sh nf /usr/bin/cf
|
rm -rf /root/CFwarp.sh /usr/bin/cf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,6 +366,13 @@ fi
|
||||||
$yumapt autoremove
|
$yumapt autoremove
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lncf(){
|
||||||
|
if [[ -n $(type -P warp-go) || -n $(type -P warp-cli) || -n $(type -P wg-quick) ]]; then
|
||||||
|
chmod +x /root/CFwarp.sh
|
||||||
|
ln -sf /root/CFwarp.sh /usr/bin/cf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
ShowSOCKS5(){
|
ShowSOCKS5(){
|
||||||
if [[ $(systemctl is-active warp-svc) = active ]]; then
|
if [[ $(systemctl is-active warp-svc) = active ]]; then
|
||||||
mport=`warp-cli --accept-tos settings 2>/dev/null | grep 'WarpProxy on port' | awk -F "port " '{print $2}'`
|
mport=`warp-cli --accept-tos settings 2>/dev/null | grep 'WarpProxy on port' | awk -F "port " '{print $2}'`
|
||||||
|
@ -459,8 +466,7 @@ warp-cli --accept-tos register >/dev/null 2>&1 && sleep 2
|
||||||
warp-cli --accept-tos set-mode proxy >/dev/null 2>&1
|
warp-cli --accept-tos set-mode proxy >/dev/null 2>&1
|
||||||
warp-cli --accept-tos set-custom-endpoint "$endpoint" >/dev/null 2>&1
|
warp-cli --accept-tos set-custom-endpoint "$endpoint" >/dev/null 2>&1
|
||||||
warp-cli --accept-tos enable-always-on >/dev/null 2>&1
|
warp-cli --accept-tos enable-always-on >/dev/null 2>&1
|
||||||
sleep 2 && ShowSOCKS5
|
sleep 2 && ShowSOCKS5 && S5menu && lncf
|
||||||
S5menu
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WGCFmenu(){
|
WGCFmenu(){
|
||||||
|
@ -505,13 +511,6 @@ red "请先卸载已安装的WGCF-WARP,否则无法安装当前的WARP-GO,
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
lncf(){
|
|
||||||
if [[ -n $(type -P warp-go) || -n $(type -P warp-cli) ]]; then
|
|
||||||
chmod +x /root/CFwarp.sh
|
|
||||||
ln -sf /root/CFwarp.sh /usr/bin/cf
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ShowWGCF(){
|
ShowWGCF(){
|
||||||
UA_Browser="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36"
|
UA_Browser="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36"
|
||||||
v4v6
|
v4v6
|
||||||
|
@ -1238,13 +1237,6 @@ systemctl restart wg-quick@wgcf ; bash CFwarp.sh
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
lncf(){
|
|
||||||
if [[ $(type -P wg-quick) || $(type -P warp-cli) ]]; then
|
|
||||||
chmod +x /root/CFwarp.sh
|
|
||||||
ln -sf /root/CFwarp.sh /usr/bin/cf
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
fawgcf(){
|
fawgcf(){
|
||||||
rm -f /etc/wireguard/wgcf+p.log
|
rm -f /etc/wireguard/wgcf+p.log
|
||||||
ID=$(cat /etc/wireguard/buckup-account.toml | grep license_key | awk '{print $3}')
|
ID=$(cat /etc/wireguard/buckup-account.toml | grep license_key | awk '{print $3}')
|
||||||
|
|
Loading…
Reference in New Issue