mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Add IPv6 information
This commit is contained in:
parent
10597f76f6
commit
2081323807
4
bench.sh
4
bench.sh
@ -95,9 +95,7 @@ if [ -e '/usr/bin/wget' ]; then
|
|||||||
speed && next
|
speed && next
|
||||||
if [ -e '/usr/bin/curl' ]; then
|
if [ -e '/usr/bin/curl' ]; then
|
||||||
ipv6=$(curl -s -6 icanhazip.com)
|
ipv6=$(curl -s -6 icanhazip.com)
|
||||||
if [[ "$ipv6" = "" ]]; then
|
if [[ "$ipv6" != "" ]]; then
|
||||||
echo "IPv6 address not found. IPv6 speed test is ignored."
|
|
||||||
else
|
|
||||||
echo -e "Node Name\t\t\tIPv6 address\t\tDownload Speed"
|
echo -e "Node Name\t\t\tIPv6 address\t\tDownload Speed"
|
||||||
speed_v6 && next
|
speed_v6 && next
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user