From d9d798e7d46f1f1f5eedf60b5aacb667c4cfb52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Kr=C3=BCger?= Date: Tue, 28 Jan 2025 10:18:33 +0100 Subject: [PATCH] Fix `ClientBuilder` constructor with new rebase --- iroh/src/magicsock/relay_actor.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/iroh/src/magicsock/relay_actor.rs b/iroh/src/magicsock/relay_actor.rs index 80779e9428..7c3eb4108e 100644 --- a/iroh/src/magicsock/relay_actor.rs +++ b/iroh/src/magicsock/relay_actor.rs @@ -251,11 +251,14 @@ impl ActiveRelayActor { #[cfg(any(test, feature = "test-utils"))] insecure_skip_cert_verify, } = opts; - #[cfg(wasm_browser)] - let dns_resolver = (); - let mut builder = relay::client::ClientBuilder::new(url, secret_key, dns_resolver) - .address_family_selector(move || prefer_ipv6.load(Ordering::Relaxed)); + let mut builder = relay::client::ClientBuilder::new( + url, + secret_key, + #[cfg(not(wasm_browser))] + dns_resolver, + ) + .address_family_selector(move || prefer_ipv6.load(Ordering::Relaxed)); if let Some(proxy_url) = proxy_url { builder = builder.proxy_url(proxy_url); }