From 95209460af9bf5611998b01bd5726c398ab198a0 Mon Sep 17 00:00:00 2001 From: Constantin Date: Thu, 26 Jul 2018 13:12:49 +0200 Subject: [PATCH] displays preferred IP if you have DS-Lite conncetion for example --- home.admin/00infoBlitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index 8ddaea8..93f8d3f 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -104,7 +104,7 @@ fi # get IP address & port local_ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') -public_ip=$(curl -s ipinfo.io/ip) +public_ip=$(curl -s http://v4v6.ipv6-test.com/api/myip.php) public_port=$(cat ${bitcoin_dir}/bitcoin.conf 2>/dev/null | grep port= | awk -F"=" '{print $2}') if [ "${public_port}" = "" ]; then if [ $chain = "test" ]; then