#3125 activate lnd rest tor service when default

This commit is contained in:
rootzoll 2022-06-01 23:38:17 +02:00
parent d61b058c65
commit af97b34c99

View File

@ -33,7 +33,13 @@ if [ ${#dynDomain} -gt 0 ]; then
host="${dynDomain}"
fi
# make sure lnd rest tor service is active when tor is active
tor_host=$(sudo cat /mnt/hdd/tor/lndrest/hostname)
if [ "${runBehindTor}" == "on" ] && [ "${tor_host}" == "" ]; then
/home/admin/config.scripts/tor.onion-service.sh lndrest 8080 8080
tor_host=$(sudo cat /mnt/hdd/tor/lndrest/hostname)
fi
# tunnel thru TOR if running and supported by the wallet
if [ ${forceTOR} -eq 1 ]; then
host=$tor_host