mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
btc-rpc-explorer localip fix
This commit is contained in:
parent
41a4ba4027
commit
b2a3b0b95d
@ -51,8 +51,8 @@ This can take multiple hours.
|
|||||||
# TOR
|
# TOR
|
||||||
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
sudo /home/admin/config.scripts/blitz.display.sh qr "${toraddress}"
|
||||||
whiptail --title " BTC-RPC-Explorer " --msgbox "Open in your local web browser:
|
whiptail --title " BTC-RPC-Explorer " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:3020\n
|
http://${localIP}:3020\n
|
||||||
https://${localip}:3021 with Fingerprint:
|
https://${localIP}:3021 with Fingerprint:
|
||||||
${fingerprint}\n
|
${fingerprint}\n
|
||||||
${passwordInfo}\n
|
${passwordInfo}\n
|
||||||
Hidden Service address for TOR Browser (QR see LCD):
|
Hidden Service address for TOR Browser (QR see LCD):
|
||||||
@ -63,8 +63,8 @@ ${toraddress}
|
|||||||
|
|
||||||
# IP + Domain
|
# IP + Domain
|
||||||
whiptail --title " BTC-RPC-Explorer " --msgbox "Open in your local web browser:
|
whiptail --title " BTC-RPC-Explorer " --msgbox "Open in your local web browser:
|
||||||
http://${localip}:3020\n
|
http://${localIP}:3020\n
|
||||||
https://${localip}:3021 with Fingerprint:
|
https://${localIP}:3021 with Fingerprint:
|
||||||
${fingerprint}\n
|
${fingerprint}\n
|
||||||
${passwordInfo}\n
|
${passwordInfo}\n
|
||||||
Activate TOR to access the web block explorer from outside your local network.
|
Activate TOR to access the web block explorer from outside your local network.
|
||||||
@ -85,7 +85,7 @@ if [ "$1" = "status" ]; then
|
|||||||
echo "installed=${installed}"
|
echo "installed=${installed}"
|
||||||
|
|
||||||
# get network info
|
# get network info
|
||||||
localip=$(ip addr | grep 'state UP' -A2 | grep -E -v 'docker0|veth' | grep 'eth0\|wlan0\|enp0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
localIP=$(ip addr | grep 'state UP' -A2 | grep -E -v 'docker0|veth' | grep 'eth0\|wlan0\|enp0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||||
toraddress=$(sudo cat /mnt/hdd/tor/btc-rpc-explorer/hostname 2>/dev/null)
|
toraddress=$(sudo cat /mnt/hdd/tor/btc-rpc-explorer/hostname 2>/dev/null)
|
||||||
fingerprint=$(openssl x509 -in /mnt/hdd/app-data/nginx/tls.cert -fingerprint -noout | cut -d"=" -f2)
|
fingerprint=$(openssl x509 -in /mnt/hdd/app-data/nginx/tls.cert -fingerprint -noout | cut -d"=" -f2)
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ if [ "$1" = "status" ]; then
|
|||||||
authMethod="none"
|
authMethod="none"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "localIP='${localip}'"
|
echo "localIP='${localIP}'"
|
||||||
echo "httpPort='3020'"
|
echo "httpPort='3020'"
|
||||||
echo "httpsPort='3021'"
|
echo "httpsPort='3021'"
|
||||||
echo "httpsForced='0'"
|
echo "httpsForced='0'"
|
||||||
|
Loading…
Reference in New Issue
Block a user