Browse Source

UI fixes, testnet port

#146
rootzoll 6 years ago
parent
commit
df6d526dd8
  1. 8
      home.admin/00infoBlitz.sh

8
home.admin/00infoBlitz.sh

@ -134,7 +134,11 @@ local_ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1
public_ip=$(curl -s http://v4.ipv6-test.com/api/myip.php) public_ip=$(curl -s http://v4.ipv6-test.com/api/myip.php)
public_port="$(echo ${networkInfo} | jq -r '.localaddresses [0] .port')" public_port="$(echo ${networkInfo} | jq -r '.localaddresses [0] .port')"
if [ "${public_port}" = "null" ]; then if [ "${public_port}" = "null" ]; then
if [ "${chain}" = "test" ]; then
public_port="18333"
else
public_port="8333" public_port="8333"
fi
fi fi
# check if RTL web interface is installed # check if RTL web interface is installed
@ -165,10 +169,10 @@ else
public_addr="${public_ip}:${public_port}" public_addr="${public_ip}:${public_port}"
public_check=$(timeout 2s nc -z ${public_ip} ${public_port} 2>/dev/null; echo $?) public_check=$(timeout 2s nc -z ${public_ip} ${public_port} 2>/dev/null; echo $?)
if [ $public_check = "0" ]; then if [ $public_check = "0" ]; then
public="Yes" public=""
public_color="${color_green}" public_color="${color_green}"
else else
public="Not reachable" public=""
public_color="${color_red}" public_color="${color_red}"
fi fi
fi fi

Loading…
Cancel
Save