Skip to content

Commit c513474

Browse files
committed
将ISP和所在地回程路由节点添加至英文版
1 parent de8b6bb commit c513474

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

ZBench-CN.sh

-2
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ chmod a+rx /tmp/ZPing-CN.py
144144
/tmp/besttrace 211.136.192.6 > /tmp/gdm.txt 2>&1 &
145145
#"TraceRoute to Guangdong Unicom"
146146
/tmp/besttrace 221.5.88.88 > /tmp/gdu.txt 2>&1 &
147-
if [[ ! ${OwnerIP} ]]; then
148147
#"TraceRoute to Owner's Network"
149148
/tmp/besttrace ${OwnerIP} > /tmp/own.txt 2>&1 &
150-
fi
151149

152150

153151

ZBench.sh

+24-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@ if [ ! -e '/usr/bin/wget' ]; then
88
fi
99
read -p "Please Enter Your Host Provider: " Provider
1010

11+
# Get IP
12+
OwnerIP=$(who am i | awk '{print $NF}' | sed -e 's/[()]//g')
13+
while :; do echo
14+
read -p "Please Confirm Your Client IP:${OwnerIP} [y/n]: " ifOwnerIP
15+
if [[ ! ${ifOwnerIP} =~ ^[y,n]$ ]]; then
16+
echo "Input error! Please only input 'y' or 'n'"
17+
else
18+
break
19+
fi
20+
done
21+
if [[ ${ifOwnerIP} == "n" ]]; then
22+
while :; do echo
23+
read -p "Please Enter Your Client IP: " OwnerIP
24+
if [[ ! ${OwnerIP} ]]; then
25+
echo "Input error! Cannot be void!"
26+
else
27+
break
28+
fi
29+
done
30+
fi
31+
1132
# Check release
1233
if [ -f /etc/redhat-release ]; then
1334
release="centos"
@@ -123,6 +144,8 @@ chmod a+rx /tmp/ZPing.py
123144
/tmp/besttrace 211.136.192.6 > /tmp/gdm.txt 2>&1 &
124145
#"TraceRoute to Guangdong Unicom"
125146
/tmp/besttrace 221.5.88.88 > /tmp/gdu.txt 2>&1 &
147+
#"TraceRoute to Owner's Network"
148+
/tmp/besttrace ${OwnerIP} > /tmp/own.txt 2>&1 &
126149

127150

128151

@@ -372,7 +395,7 @@ NetUPCM=$( sed -n "25p" /tmp/speed_cn.txt )
372395
NetDWCM=$( sed -n "26p" /tmp/speed_cn.txt )
373396
NetPiCM=$( sed -n "27p" /tmp/speed_cn.txt )
374397
375-
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/Generate.py >> /dev/null 2>&1
398+
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/dev/Generate.py >> /dev/null 2>&1
376399
python Generate.py && rm -rf Generate.py && cp /root/report.html /tmp/report/index.html
377400
TSM=$( cat /tmp/shm.txt_table )
378401
TST=$( cat /tmp/sht.txt_table )

0 commit comments

Comments
 (0)