emersion / hydroxide

A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge
MIT License
1.59k stars 123 forks source link

implement proxy and Tor support #271

Open h3xagonal opened 6 months ago

h3xagonal commented 6 months ago

This PR implements SOCKS5 proxy support, connecting to ProtonMail over Tor using the .onion API endpoint and per account stream isolation.

Usage:

SOCKS5 proxy

./hydroxide -proxy 127.0.0.1:9150 serve

Tor SocksPort and .onion service

./hydroxide -proxy 127.0.0.1:9150 -tor serve

Fixes: #266