upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 11:21:45 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 11:48:13 +0000
commit319bb7fa2c984da45422fa81d12b4a5226beb493 (patch)
treebb05a39180cf0513434a0cdd63fd25b4788066c5 /Cargo.toml
parent3a17877bcdabc9d6721e3054c2bb07a892f32147 (diff)
fix IPv6 connection failures with Happy Eyeballs (RFC 8305)
Implement a custom WebSocketTransport that races IPv6 and IPv4 connections with a 250ms head start for IPv6, matching browser behavior. This prevents broken IPv6 from blocking all relay connections indefinitely. This is a temporary fix until the upstream async-wsocket PR is merged: https://github.com/shadowylab/async-wsocket/pull/42
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7adf6ff..721893e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,7 @@ categories = ["command-line-utilities","development-tools"]
14[dependencies] 14[dependencies]
15anyhow = "1.0.98" 15anyhow = "1.0.98"
16async-trait = "0.1.88" 16async-trait = "0.1.88"
17async-wsocket = "0.13.1" # TEMPORARY: remove when transport.rs is deleted. See transport.rs header.
17auth-git2 = "0.5.8" 18auth-git2 = "0.5.8"
18chacha20poly1305 = "0.10.1" 19chacha20poly1305 = "0.10.1"
19chrono = "0.4" 20chrono = "0.4"
@@ -39,6 +40,7 @@ serde = { version = "1.0.219", features = ["derive"] }
39serde_json = "1.0.140" 40serde_json = "1.0.140"
40serde_yaml = "0.9.34" 41serde_yaml = "0.9.34"
41tokio = { version = "1.46.1", features = ["full"] } 42tokio = { version = "1.46.1", features = ["full"] }
43tokio-tungstenite = "0.26.2" # TEMPORARY: remove when transport.rs is deleted. See transport.rs header.
42urlencoding = "2.1.3" 44urlencoding = "2.1.3"
43zeroize = "1.8.1" 45zeroize = "1.8.1"
44 46