mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
fully noded: fix displaying the hidden service (#2353)
This commit is contained in:
@@ -22,12 +22,19 @@ elif [ "${chain}net" == "signet" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check and set up the HS
|
# check and set up the HS
|
||||||
/home/admin/config.scripts/internet.hiddenservice.sh bitcoin ${BITCOINRPCPORT} ${BITCOINRPCPORT}
|
/home/admin/config.scripts/internet.hiddenservice.sh bitcoin${BITCOINRPCPORT} ${BITCOINRPCPORT} ${BITCOINRPCPORT}
|
||||||
|
|
||||||
hiddenService=$(sudo cat /mnt/hdd/tor/bitcoin${BITCOINRPCPORT}/hostname)
|
hiddenService=$(sudo cat /mnt/hdd/tor/bitcoin${BITCOINRPCPORT}/hostname)
|
||||||
|
# https://github.com/rootzoll/raspiblitz/issues/2339
|
||||||
|
if [ ${#hiddenService} -eq 0 ];then
|
||||||
|
hiddenService=$(sudo cat /mnt/hdd/tor/bitcoin/hostname)
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "# The Hidden Service for bitcoind port ${BITCOINRPCPORT} is:"
|
||||||
|
echo "${hiddenService}"
|
||||||
|
|
||||||
# btcstandup://<rpcuser>:<rpcpassword>@<hidden service hostname>:<hidden service port>/?label=<optional node label>
|
# btcstandup://<rpcuser>:<rpcpassword>@<hidden service hostname>:<hidden service port>/?label=<optional node label>
|
||||||
quickConnect="btcstandup://$RPC_USER:$PASSWORD_B@$hiddenService:${BITCOINRPCPORT}/?label=$hostname"
|
quickConnect="btcstandup://${RPC_USER}:${PASSWORD_B}@${hiddenService}:${BITCOINRPCPORT}/?label=${hostname}"
|
||||||
echo
|
echo
|
||||||
echo "scan the QR Code with Fully Noded to connect to your node:"
|
echo "scan the QR Code with Fully Noded to connect to your node:"
|
||||||
/home/admin/config.scripts/blitz.display.sh qr "${quickConnect}"
|
/home/admin/config.scripts/blitz.display.sh qr "${quickConnect}"
|
||||||
|
Reference in New Issue
Block a user