From 20813238075487848cf9c7cdb6cd5dbe27416225 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sun, 29 Nov 2015 19:59:07 +0800 Subject: [PATCH] Add IPv6 information --- bench.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bench.sh b/bench.sh index 050e705..d274c34 100644 --- a/bench.sh +++ b/bench.sh @@ -95,9 +95,7 @@ if [ -e '/usr/bin/wget' ]; then speed && next if [ -e '/usr/bin/curl' ]; then ipv6=$(curl -s -6 icanhazip.com) - if [[ "$ipv6" = "" ]]; then - echo "IPv6 address not found. IPv6 speed test is ignored." - else + if [[ "$ipv6" != "" ]]; then echo -e "Node Name\t\t\tIPv6 address\t\tDownload Speed" speed_v6 && next fi