Update port_pure.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent 80cc61ad13
commit 1800c2df5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      port_pure.sh

@ -19,8 +19,7 @@ until [[ $ALL =~ 'TW_1' ]]; do
ALL=$(wget -qO- --header="cookie: $TOKEN" https://tcp$STACK.ping.pe/ajax_getPingResults_v2.php?stream_id=$STREAM_ID) ALL=$(wget -qO- --header="cookie: $TOKEN" https://tcp$STACK.ping.pe/ajax_getPingResults_v2.php?stream_id=$STREAM_ID)
done done
echo $ALL [ -z "$ALL" ] && printf "获取不了数据,请输入正确的格式: IPv4:port, [IPv6]:port, 域名:port\n" && exit 1
[[ $ALL = '[]' ]] && printf "获取不了数据,请输入正确的格式: IPv4:port, [IPv6]:port, 域名:port\n"
printf "%-10s %-10s %-10s\n" 状态 地方 ISP printf "%-10s %-10s %-10s\n" 状态 地方 ISP
for ((i=0;i<${#NODE_ID[@]};i++)); do for ((i=0;i<${#NODE_ID[@]};i++)); do
RESULT[i]=$(echo $ALL | python3 -m json.tool | grep -A 2 ${NODE_ID[i]} | grep result | sed "s#[\":, ]##g") RESULT[i]=$(echo $ALL | python3 -m json.tool | grep -A 2 ${NODE_ID[i]} | grep result | sed "s#[\":, ]##g")

Loading…
Cancel
Save