mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 03:56:21 +02:00
Merge pull request #13 from vnnkl/changeIpProvider
displays preferred IP
This commit is contained in:
@@ -104,7 +104,7 @@ fi
|
|||||||
|
|
||||||
# get IP address & port
|
# get IP address & port
|
||||||
local_ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
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}')
|
public_port=$(cat ${bitcoin_dir}/bitcoin.conf 2>/dev/null | grep port= | awk -F"=" '{print $2}')
|
||||||
if [ "${public_port}" = "" ]; then
|
if [ "${public_port}" = "" ]; then
|
||||||
if [ $chain = "test" ]; then
|
if [ $chain = "test" ]; then
|
||||||
|
Reference in New Issue
Block a user