diff --git a/mullvad-api/src/ffi/mod.rs b/mullvad-api/src/ffi/mod.rs index 29d4db652288..a68ea40ed6cb 100644 --- a/mullvad-api/src/ffi/mod.rs +++ b/mullvad-api/src/ffi/mod.rs @@ -7,7 +7,7 @@ use std::{ use crate::{ rest::{self, MullvadRestHandle}, - AccountsProxy, DevicesProxy, NullDnsResolver, + AccountsProxy, DevicesProxy, }; mod device; @@ -209,11 +209,11 @@ impl FfiClient { } fn device_proxy(&self) -> DevicesProxy { - crate::DevicesProxy::new(self.rest_handle(NullDnsResolver)) + crate::DevicesProxy::new(self.rest_handle()) } fn accounts_proxy(&self) -> AccountsProxy { - crate::AccountsProxy::new(self.rest_handle(NullDnsResolver)) + crate::AccountsProxy::new(self.rest_handle()) } fn tokio_handle(&self) -> tokio::runtime::Handle { diff --git a/mullvad-api/src/lib.rs b/mullvad-api/src/lib.rs index fb8b86a9b9e7..3b02e4fe98ed 100644 --- a/mullvad-api/src/lib.rs +++ b/mullvad-api/src/lib.rs @@ -376,7 +376,6 @@ impl Runtime { Runtime { handle, address_cache: AddressCache::with_static_addr(address), - dns_resolver: Arc::new(NullDnsResolver), api_availability: ApiAvailability::default(), } }