node: Improve Tor configuration flexibility

*Breaking change* The `tor` configuration field is no longer
supported. Users must remove that field from their config.

Allows for a mixed mode, where regular addresses bypass the Tor proxy,
while onion addresses go through it.

When `onion.mode` is set to "forward", Tor connections are fowarded to
the global proxy, and if it isn't set, to the OS's DNS resolution.

For mixed mode, a global proxy simply isn't set, so that IP/DNS is not
proxied.
This commit is contained in:
cloudhead
2024-05-16 14:53:52 +02:00
parent cb2cbf014a
commit ca7db1620c
5 changed files with 47 additions and 58 deletions
-1
View File
@@ -29,7 +29,6 @@ $ rad config
"db": {
"journalMode": "rollback"
},
"tor": null,
"network": "main",
"log": "INFO",
"relay": "auto",