das-labor / neopg

The multiversal cryptoengine!
Other
216 stars 16 forks source link

Remove special tor mode. #37

Closed lambdafu closed 6 years ago

lambdafu commented 6 years ago

Now that we do not require custom DNS lookups (which meant using a local dns resolver in GnuPG that uses TCP over Tor), what's left of GnuPG's Tor support is preferring .onion keyserver addresses over non-onion addresses if Tor is available. Let's stipulate that for now people who know how to configure a Tor proxy can also set an .onion keyserver URL, if they want to use one. With this change, you can use NeoPG with Tor just like any other application, simply by configuring the SOCKS5H proxy and setting the corresponding environment variables or proxy configuration options. I also set the default of dirmngr to honor http proxy environment variables, so Tor will be used by default if configured. Also, this will make it more compatible with network configurations that require the use of a proxy. Also, the option --honor-http-proxy was renamed to --no-http-proxy with the opposite meaning (disable all http proxy use).