Closed talvasconcelos closed 1 year ago
Needs Tor testing, as I can't test it locally! @dni @motorina0 @callebtc ?
I don't understand what this PR does, maybe you can explain. User enters a wrong URL and this PR corrects it? Why does the user enter a wrong URL in the first place?
Needs Tor testing, as I can't test it locally! @dni @motorina0 @callebtc ?
- can you please add testing steps
Spin lnbits behind Tor -> generate an lnurlp -> scan the QR to check if URL is https
(which will fail) or http
I don't understand what this PR does, maybe you can explain. User enters a wrong URL and this PR corrects it? Why does the user enter a wrong URL in the first place?
SuperTestnet reported an issue on telegram group about the QR from LNURLp, if lnbits is behind Tor, has the URL with https scheme, instead of http (i think it's the way FastAPI's url_for
works)! This PR just check, before creating the link/callback if the url is a Tor (.onion) URL and replace https
with http
@dni did you managed to test this PR?
I think this is the "issue" Super Testnet raised on the Telegram channel!
Needs Tor testing, as I can't test it locally! @dni @motorina0 @callebtc ?