Browse Source

Merge pull request #42 from highvolt4ge/patch-1

Litecoin support for public ports in 00infoBlitz.sh
#146
Christian Rotzoll 6 years ago
committed by GitHub
parent
commit
ee94fd0672
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      home.admin/00infoBlitz.sh

14
home.admin/00infoBlitz.sh

@ -110,10 +110,18 @@ 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_port=$(cat ${bitcoin_dir}/${network}.conf 2>/dev/null | grep port= | awk -F"=" '{print $2}')
if [ "${public_port}" = "" ]; then
if [ "${chain}" = "test" ]; then
public_port=18333
if [ "${network}" = "litecoin" ]; then
if [ "${chain}" = "test" ]; then
public_port=19333
else
public_port=9333
fi
else
public_port=8333
if [ "${chain}" = "test" ]; then
public_port=18333
else
public_port=8333
fi
fi
fi

Loading…
Cancel
Save