Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(core_rpc): guard insecure-transport check behind gateways feature

Steven Enamakel6b3f485cf3ae
diff --git a/app/src-tauri/src/core_rpc.rs b/app/src-tauri/src/core_rpc.rs
index 8f2cbed9ef..bf66491dd9 100644
--- a/app/src-tauri/src/core_rpc.rs
+++ b/app/src-tauri/src/core_rpc.rs
@@ -99,6 +99,7 @@ pub(crate) async fn post_json_rpc(
// The local core (loopback) and any `https` endpoint keep working; a
// Remote gateway that slipped past persistence is still rejected here.
let relay_token = relay_bearer_header(token);
+ #[cfg(feature = "gateways")]
if relay_token.is_some() && crate::gateway::types::validate_remote_transport(url, token).is_err()
{
return Err(format!("refusing to send a bearer to {url} over an insecure transport"));