Feature flag IPv4 forcing

This commit is contained in:
durch
2025-09-04 17:04:10 +02:00
parent 6dcfb81b95
commit 86d74ebca1
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -14,6 +14,7 @@ license.workspace = true
default=["tunneling"]
tunneling=[]
network-defaults = ["dep:nym-network-defaults"]
force-ipv4 = []
[dependencies]
async-trait = { workspace = true }
@@ -50,3 +51,4 @@ features = ["tokio"]
[dev-dependencies]
tokio = { workspace = true, features = ["rt", "macros"] }
+3 -1
View File
@@ -512,9 +512,11 @@ impl ClientBuilder {
.deflate(true)
.brotli(true)
.zstd(true)
.local_address(IpAddr::from_str("0.0.0.0").unwrap())
};
#[cfg(feature = "force-ipv4")]
let reqwest_client_builder = reqwest_client_builder.local_address(IpAddr::from_str("0.0.0.0").unwrap());
ClientBuilder {
urls,
timeout: None,