Update 661.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-03-15 06:40:51 +00:00
parent 9d8edde075
commit bb0e7556d9
1 changed files with 12 additions and 11 deletions

23
661.sh
View File

@ -97,6 +97,18 @@ fi
[[ ! $(type -P qrencode) ]] && ($yumapt update;$yumapt install qrencode) [[ ! $(type -P qrencode) ]] && ($yumapt update;$yumapt install qrencode)
[[ ! $(type -P python3) ]] && (yellow "检测到python3未安装升级安装中" && $yumapt update;$yumapt install python3) [[ ! $(type -P python3) ]] && (yellow "检测到python3未安装升级安装中" && $yumapt update;$yumapt install python3)
v4v6(){
v4=$(curl -s4m6 ip.sb -k)
v6=$(curl -s6m6 ip.sb -k)
#v6=$(curl -s6m6 api64.ipify.org -k)
#v4=$(curl -s4m6 api64.ipify.org -k)
}
checkwgcf(){
wgcfv6=$(curl -s6m6 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)
}
checkpt(){ checkpt(){
mkdir -p /root/warpip mkdir -p /root/warpip
cpujg cpujg
@ -215,12 +227,6 @@ green "本地VPS优选的warp对端IP地址$endpoint"
fi fi
} }
warpip warpip
v4v6(){
v4=$(curl -s4m6 ip.sb -k)
v6=$(curl -s6m6 ip.sb -k)
#v6=$(curl -s6m6 api64.ipify.org -k)
#v4=$(curl -s4m6 api64.ipify.org -k)
}
dig9(){ dig9(){
if [[ -n $(grep 'DiG 9' /etc/hosts) ]]; then if [[ -n $(grep 'DiG 9' /etc/hosts) ]]; then
@ -228,11 +234,6 @@ echo -e "search blue.kundencontroller.de\noptions rotate\nnameserver 2a02:180:6:
fi fi
} }
checkwgcf(){
wgcfv6=$(curl -s6m6 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)
}
get_char(){ get_char(){
SAVEDSTTY=`stty -g` SAVEDSTTY=`stty -g`
stty -echo stty -echo