Update return.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent d13a86fdff
commit 4182d55eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      return.sh

@ -34,9 +34,9 @@ done
ip=$1
echo -e "\n 本脚说明:测 VPS ——> 对端 经过的地区及线路,填本地IP就是测回程,核心程序来由: https://www.ipip.net/ ,请知悉!"
[[ -z "$ip" || $ip = '[DESTINATION_IP]' ]] && reading "\n 请输入目的地 IP: " ip
[[ -z "$ip" || $ip = '[DESTINATION_IP]' ]] && read -rp "\n 请输入目的地 IP: " ip
echo -e "\n 检测中,请稍等片刻。\n"
[[ ! -e "$FILE" ]] && wget -N https://cdn.jsdelivr.net/gh/fscarmen/tools/besttrace/$FILE
[[ ! -e "$FILE" ]] && wget -qN https://cdn.jsdelivr.net/gh/fscarmen/tools/besttrace/$FILE
chmod +x "$FILE" >/dev/null 2>&1
./"$FILE" "$ip" -g cn > $TEMP_FILE
cat $TEMP_FILE | sed "s/.*\*\(.*\)/\1/g" | sed "s/.*AS[0-9]*//g" | sed "/\*$/d;/^$/d;1d" | uniq | awk '{printf("%d.%s\n"),NR,$0}'

Loading…
Cancel
Save