node: Improve Tor configuration flexibility
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.
5 files changed
+47
-58
cb2cbf01
→
ca7db162
modified radicle-cli/examples/rad-config.md
@@ -29,7 +29,6 @@ $ rad config
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/profile.rs
@@ -90,7 +90,6 @@ mod routes {
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified radicle-node/src/service.rs
@@ -1232,7 +1232,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2335,8 +2335,8 @@ where
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/wire/protocol.rs
@@ -21,7 +21,7 @@ use netservices::{NetConnection, NetReader, NetWriter};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1071,42 +1071,37 @@ pub fn dial<G: Signer + Ecdh<Pk = NodeId>>(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/node/config.rs
@@ -7,7 +7,7 @@ use localtime::LocalDuration;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -247,17 +247,18 @@ pub enum Relay {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -290,9 +291,12 @@ pub struct Config {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -334,7 +338,8 @@ impl Config {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -359,15 +364,6 @@ impl Config {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|