diff --git a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh index 0d89cfe4..d151ad5c 100755 --- a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh @@ -16,6 +16,15 @@ else fi fi +# Append tor domain +if [ -f /var/lib/tor/mynode_lnd/hostname ]; then + echo "" >> /mnt/hdd/mynode/lnd/lnd.conf + echo "[Application Options]" >> /mnt/hdd/mynode/lnd/lnd.conf + ONION_URL=$(cat /var/lib/tor/mynode_lnd/hostname) + echo "tlsextradomain=$ONION_URL" >> /mnt/hdd/mynode/lnd/lnd.conf + echo "" >> /mnt/hdd/mynode/lnd/lnd.conf +fi + ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias) sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf \ No newline at end of file