Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(host): a computer in a network connects to the relay again

leepokai6298fd5ed5f0
diff --git a/host/Cargo.lock b/host/Cargo.lock
index 3d38525a..8e764a16 100644
--- a/host/Cargo.lock
+++ b/host/Cargo.lock
@@ -3017,6 +3017,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c01a35be3ed37558c8db69554419f24eff8a63599b54f711bbe3863ec727c47d"
dependencies = [
"aes-gcm",
+ "aws-lc-rs",
"bytes",
"derive_more",
"enum-assoc",
@@ -4942,6 +4943,7 @@ version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d52efb639344a7c6adb8e62c6f3d2c19c001ff1b79a5041ba1c6ed42e19c6aa5"
dependencies = [
+ "aws-lc-rs",
"base64 0.22.1",
"bytes",
"futures-core",
diff --git a/host/Cargo.toml b/host/Cargo.toml
index 68773874..7bb649b7 100644
--- a/host/Cargo.toml
+++ b/host/Cargo.toml
@@ -21,7 +21,8 @@ chacha20poly1305 = "0.11.0"
chrono = "0.4.45"
chrono-tz = "0.10.4"
codync-mem = { path = "crates/memory" }
-codync-network = { path = "crates/network" }
+# aws-lc-rs, like reqwest and tokio-tungstenite: with ring built in too, rustls has no default provider.
+codync-network = { path = "crates/network", default-features = false, features = ["tls-aws-lc-rs"] }
clap = { version = "4.6.7", features = ["derive", "env"] }
croner = "3"
crossterm = { version = "0.29", features = ["event-stream"] }
diff --git a/host/crates/network/Cargo.toml b/host/crates/network/Cargo.toml
index 4537b928..59d66d28 100644
--- a/host/crates/network/Cargo.toml
+++ b/host/crates/network/Cargo.toml
@@ -15,12 +15,19 @@ categories = ["network-programming"]
anyhow = "1"
base64 = "0.23"
getrandom = "0.4"
-iroh = "1.4"
+iroh = { version = "1.4", default-features = false, features = ["metrics", "fast-apple-datapath", "portmapper"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
+# The TLS library under iroh. An app that already uses rustls with aws-lc-rs takes `tls-aws-lc-rs`
+# (with default-features = false): rustls can't pick a provider by itself when both are built in.
+[features]
+default = ["tls-ring"]
+tls-ring = ["iroh/tls-ring"]
+tls-aws-lc-rs = ["iroh/tls-aws-lc-rs"]
+
# Written out instead of inherited, so the crate also builds on its own (like codync-mem).
[lints.rust]
unsafe_code = "forbid"