Convergence
Convergence copied to clipboard
Replace HTTP/HTTPS proxy with SOCKS proxy
Replacing the HTTP/HTTPS proxy with a SOCKS proxy would have the following benefits:
- Fix HTTP bugs (non-GET requests aren't handled correctly, and the request headers are partially broken right now).
- Allow clients other than web browsers to use the proxy more easily.
- Make it easier to implement Tor stream isolation later.
See SOCKS5Server.js for a mostly-working drop-in replacement for the HTTP/HTTPS proxy that we're using now.
There is a lean SOCKS proxy here: https://github.com/internetarchive/warcprox/blob/master/warcprox/mitmproxy.py