unofficial-protonmail-desktop / application

:envelope: Unofficial desktop client for ProtonMail
MIT License
534 stars 49 forks source link

Connect through TOR network? #143

Open psmis2 opened 6 years ago

psmis2 commented 6 years ago

Is there a way to do it or any plans to add support for it?

kontrollanten commented 6 years ago

Until now we haven't talked about it. It sounds interesting. I have no experience of integrating with TOR though. https://github.com/jamesacampbell/elector seems to have done a TOR integration with Electron. We'll investigate this further when time comes :)

SkyzohKey commented 6 years ago

@kontrollanten you basically just need to define a proxy for the Electron webview/process. Make it not Tor targeted but proxy targeted, as Tor is just a SOCKS5 proxy. This way you enable Tor user to allow their Protonmail account (detect if the proxy is set to 127.0.0.1:9050 and set the webview URL to the Protonmail Tor onion service) but you also permits other uses to use a pmregular proxy (or even I2P users).