stackernews / stacker.news

Internet communities that pay you Bitcoin
https://stacker.news
MIT License
404 stars 105 forks source link

attach LNbits wallet over Tor #1166

Closed huumn closed 1 month ago

huumn commented 1 month ago

This isn't working according this: https://stacker.news/items/537831/r/k00b?commentId=538356

ekzyis commented 1 month ago

We should be able to use the same code from #1136 and #1165 for LNbits.

Before reusing the code, it should be wrapped in a single agent that encapsulates the decision making between Tor agents vs clearnet agent.

ekzyis commented 1 month ago

Mhh, connecting to LNbits happens on the client so the proxy code from #1136 and #1165 is not what we need here. According to the comment, the browser the stacker is using is able to connect to .onion sites in some way. Seems like forcing HTTPS is the only issue here? I'll add some code to detect if .onion is used and then default to HTTP.