Skip to content

Commit

Permalink
Fix ClientBuilder constructor with new rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Jan 29, 2025
1 parent c87eeb7 commit d9d798e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions iroh/src/magicsock/relay_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d9d798e

Please sign in to comment.