From aaab6ac49c6c6d4ed97da7d854c4301cc87ac558 Mon Sep 17 00:00:00 2001 From: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> Date: Sat, 27 Jun 2026 22:08:42 -0400 Subject: [PATCH] Trim desktop localhost resolver comment Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> --- desktop/src-tauri/src/app_state.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/desktop/src-tauri/src/app_state.rs b/desktop/src-tauri/src/app_state.rs index d80f7c8923..18b218bf07 100644 --- a/desktop/src-tauri/src/app_state.rs +++ b/desktop/src-tauri/src/app_state.rs @@ -11,7 +11,6 @@ use tokio::sync::Mutex as AsyncMutex; use crate::huddle::HuddleState; use crate::managed_agents::ManagedAgentProcess; - pub struct AppState { pub keys: Mutex, pub http_client: reqwest::Client, @@ -84,11 +83,6 @@ pub fn build_app_state() -> AppState { AppState { keys: Mutex::new(keys), http_client: reqwest::Client::builder() - // Keep URL authority/Host headers intact for relay tenant binding, - // but avoid macOS/IPv6 localhost flakiness for local dev services. - // reqwest uses the URL port over this port-0 DNS override, so - // http://localhost:3000 still sends Host: localhost:3000 while - // connecting to 127.0.0.1:3000 instead of ::1. .resolve("localhost", std::net::SocketAddr::from(([127, 0, 0, 1], 0))) .pool_idle_timeout(std::time::Duration::from_secs(10)) .pool_max_idle_per_host(1)