Update CFwarp1.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2022-09-22 08:00:44 +00:00
parent 5716fa47cf
commit 3b36f4b858
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ if [[ -n $v6 ]]; then
wgcfv6=$(curl -s6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) wgcfv6=$(curl -s6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2)
nonf=$(curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v6?lang=zh-CN -k | cut -f2 -d"," | cut -f4 -d '"') nonf=$(curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v6?lang=zh-CN -k | cut -f2 -d"," | cut -f4 -d '"')
sunf=$(./nf | awk '{print $1}' | sed -n '8p') sunf=$(./nf | awk '{print $1}' | sed -n '8p')
snnf=$(curl -s4m6 ip.p3terx.com -k | sed -n 2p | awk '{print $3}') snnf=$(curl -s6m6 ip.p3terx.com -k | sed -n 2p | awk '{print $3}')
if [[ -n $sunf ]]; then if [[ -n $sunf ]]; then
country=$sunf country=$sunf
elif [[ -z $sunf && -n $nonf ]]; then elif [[ -z $sunf && -n $nonf ]]; then