lnbits / withdraw

LNbits Withdraw Extension
MIT License
6 stars 9 forks source link

check .onion and change scheme to http #7

Closed talvasconcelos closed 11 months ago

talvasconcelos commented 1 year ago

Fastapi's url_for creates https URL's. If behind Tor, url scheme should be http. The PR checks if the url netloc is .onion and changes url scheme to http. Needs Tor testing.

Closes #5

dni commented 1 year ago

i wonder why request does not infere the proper scheme we need to revisit this after this PR: https://github.com/lnbits/lnbits/pull/1609 updating to latest fastapi and starlette it may be fixed for a long time already.