fix qr code

This commit is contained in:
rootzoll 2020-01-26 23:59:06 +01:00
parent a2cfa53cfd
commit f1f7cb2fdb
2 changed files with 3 additions and 2 deletions

View file

@ -413,7 +413,7 @@ WantedBy=multi-user.target
# Hidden Service for electrs if Tor active
if [ "${runBehindTor}" = "on" ]; then
/home/admin/config.scripts/internet.hiddenservice.sh electrs 50002 50002 50001 50001
/home/admin/config.scripts/internet.hiddenservice.sh electrs 50002 50002 50001 50001
fi
## Enable BTCEXP_ADDRESS_API if BTC-RPC-Explorer is active

View file

@ -20,7 +20,7 @@ fi
if [ "$1" = "menu" ]; then
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
torInfo="\nActivate TOR to access the web interface from outside your local network."
toraddress=$(sudo cat /mnt/hdd/tor/RTL/hostname)
toraddress=$(sudo cat /mnt/hdd/tor/RTL/hostname 2>/dev/null)
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
torInfo="\nHidden Service address for TOR Browser (QR see LCD):\n${toraddress}"
/home/admin/config.scripts/blitz.lcd.sh qr "${toraddress}"
@ -30,6 +30,7 @@ http://${localip}:3000
Use your Password B to login.
${torInfo}
" 12 58
echo "please wait ..."
/home/admin/config.scripts/blitz.lcd.sh hide
exit 0
fi