Update 661.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-04-06 02:37:37 +00:00
parent 077287524a
commit 89b09eb3be
1 changed files with 1 additions and 3 deletions

4
661.sh
View File

@ -162,8 +162,6 @@ wgcfv6=$(curl -s6m6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cu
wgcfv4=$(curl -s4m6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) wgcfv4=$(curl -s4m6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2)
} }
warpip(){ warpip(){
checkpt2(){ checkpt2(){
a=`cat /root/warpip/result.csv | awk -F, '$3!="timeout ms" {print} ' | sed -n '2p' | awk -F ',' '{print $2}'` a=`cat /root/warpip/result.csv | awk -F, '$3!="timeout ms" {print} ' | sed -n '2p' | awk -F ',' '{print $2}'`
@ -908,7 +906,7 @@ systemctl enable warp-go
systemctl start warp-go systemctl start warp-go
checkwgcf checkwgcf
if [[ $wgcfv4 =~ on|plus || $wgcfv6 =~ on|plus ]]; then if [[ $wgcfv4 =~ on|plus || $wgcfv6 =~ on|plus ]]; then
green "恭喜warp的IP获取成功" && dns green "恭喜warp的IP获取成功" && dns && xyz
else else
CheckWARP CheckWARP
fi fi