Improve Tor Handling
Introduce a feature for supporting connections via Tor, and improve domain modelling around configuration of SOCKS proxying.
15 files changed
+108
-24
8bac24d6
→
10a82958
modified crates/radicle-cli/Cargo.toml
@@ -13,6 +13,10 @@ rust-version.workspace = true
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-config.md
@@ -247,14 +247,7 @@ $ rad config schema
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -410,6 +403,19 @@ $ rad config schema
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-node/Cargo.toml
@@ -10,9 +10,10 @@ build = "build.rs"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -21,7 +22,7 @@ bytes = { workspace = true }
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-node/src/wire.rs
@@ -21,6 +21,7 @@ use radicle::collections::{RandomMap, RandomSet};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1091,13 +1092,14 @@ pub fn dial<G: Ecdh<Pk = NodeId>>(
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1105,7 +1107,7 @@ pub fn dial<G: Ecdh<Pk = NodeId>>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/Cargo.toml
@@ -10,12 +10,13 @@ rust-version.workspace = true
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/service.rs
@@ -30,6 +30,8 @@ use radicle::node;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -2655,7 +2657,8 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/wire.rs
@@ -14,6 +14,7 @@ use std::string::FromUtf8Error;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -56,6 +57,7 @@ pub enum Invalid {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -257,6 +259,7 @@ impl Encode for Refs {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -518,6 +521,7 @@ impl Decode for node::Features {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/wire/message.rs
@@ -2,7 +2,9 @@ use std::{mem, net};
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -79,6 +81,7 @@ pub enum AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -94,6 +97,7 @@ impl From<&Address> for AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -108,6 +112,7 @@ impl TryFrom<u8> for AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -356,6 +361,7 @@ impl wire::Encode for Address {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -393,6 +399,7 @@ impl wire::Decode for Address {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle/Cargo.toml
@@ -24,6 +24,7 @@ schemars = [
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -32,7 +33,7 @@ bytesize = { version = "2", features = ["serde"] }
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/node.rs
@@ -476,6 +476,7 @@ impl Address {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -493,6 +494,7 @@ impl Address {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle/src/node/address.rs
@@ -201,6 +201,7 @@ pub enum AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -216,6 +217,7 @@ impl From<&Address> for AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -230,6 +232,7 @@ impl TryFrom<u8> for AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle/src/node/address/store.rs
@@ -535,6 +535,7 @@ impl TryFrom<&sql::Value> for AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -549,6 +550,7 @@ impl sql::BindableWithIndex for AddressType {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle/src/node/config.rs
@@ -22,7 +22,9 @@ pub type ProtocolVersion = u8;
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -41,6 +43,7 @@ pub mod seeds {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -58,6 +61,7 @@ pub mod seeds {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -351,9 +355,10 @@ pub enum Relay {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -363,6 +368,9 @@ pub enum AddressConfig {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -540,8 +548,13 @@ pub struct Config {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -596,7 +609,8 @@ impl Config {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -937,4 +951,27 @@ mod test {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified crates/radicle/src/serde_ext.rs
@@ -45,3 +45,13 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle/src/test/arbitrary.rs
@@ -5,8 +5,8 @@ use std::str::FromStr;
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -229,6 +229,7 @@ impl Arbitrary for Address {
|
|
|
|
|
|
| + | |
|
|
|
|
|