summaryrefslogtreecommitdiffhomepage
path: root/mullvad-management-interface/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mullvad-management-interface/src/client.rs')
-rw-r--r--mullvad-management-interface/src/client.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/mullvad-management-interface/src/client.rs b/mullvad-management-interface/src/client.rs
index d1594f1e71..bddc94d0be 100644
--- a/mullvad-management-interface/src/client.rs
+++ b/mullvad-management-interface/src/client.rs
@@ -694,6 +694,13 @@ impl MullvadProxyClient {
self.0.set_personal_vpn_config_status(enabled).await?;
Ok(())
}
+
+ /// Import a personal VPN configuration from the contents of a wg-quick file.
+ #[cfg(feature = "personal-vpn")]
+ pub async fn import_personal_vpn_config(&mut self, body: String) -> Result<String> {
+ let response = self.0.import_personal_vpn_config(body).await?;
+ Ok(response.into_inner().error)
+ }
}
#[cfg(not(target_os = "android"))]