summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-11-10 14:42:15 +0100
committerDavid Lönnhager <david.l@mullvad.net>2020-11-19 01:35:22 +0100
commitfe9be13deced09e6715b05da2e2cd27921c263af (patch)
tree1836d7efbae555aca35c613fa384a2194bbe0591 /mullvad-daemon/src
parent461dd7f6fd4909e598dfd190f846d1fcc68d6f6b (diff)
downloadmullvadvpn-fe9be13deced09e6715b05da2e2cd27921c263af.tar.xz
mullvadvpn-fe9be13deced09e6715b05da2e2cd27921c263af.zip
Shuffle API address cache when loaded, and use bundled API address cache as fallback
Diffstat (limited to 'mullvad-daemon/src')
-rw-r--r--mullvad-daemon/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs
index 0599cb052a..b4e5dd3279 100644
--- a/mullvad-daemon/src/lib.rs
+++ b/mullvad-daemon/src/lib.rs
@@ -494,9 +494,10 @@ where
let (tunnel_state_machine_shutdown_tx, tunnel_state_machine_shutdown_signal) =
oneshot::channel();
- let mut rpc_runtime = mullvad_rpc::MullvadRpcRuntime::with_cache_dir(
+ let mut rpc_runtime = mullvad_rpc::MullvadRpcRuntime::with_cache(
tokio::runtime::Handle::current(),
- &cache_dir,
+ &resource_dir,
+ Some(&cache_dir),
)
.await
.map_err(Error::InitRpcFactory)?;