cd

sudo sed -i '/wtclient.active=true/a restlisten=localhost:8080' /data/lnd/lnd.conf

sudo cat << EOF | sudo tee -a /etc/tor/torrc
############### This section is just for location-hidden services ###
HiddenServiceDir /var/lib/tor/hidden_service_lnd_rest/
HiddenServiceVersion 3
HiddenServicePort 8080 127.0.0.1:8080
EOF
############

sudo systemctl reload tor

sudo systemctl restart lnd

sleep 5

cd
rm lnurl.sh

sudo cat /var/lib/tor/hidden_service_lnd_rest/hostname


