diff options
| author | Joakim Hulthe <joakim@hulthe.net> | 2024-04-09 16:30:55 +0200 |
|---|---|---|
| committer | Joakim Hulthe <joakim@hulthe.net> | 2024-04-12 14:53:12 +0200 |
| commit | 9be8fb440ebefad790e8a09bd0ce1252575852be (patch) | |
| tree | 1d3fc0600ff1dc8dc2852757df41333eb4b17dbc /mullvad-management-interface/src | |
| parent | 32ad869dd3074a3ef6f4f1427600ec0821aaaad6 (diff) | |
| download | mullvadvpn-9be8fb440ebefad790e8a09bd0ce1252575852be.tar.xz mullvadvpn-9be8fb440ebefad790e8a09bd0ce1252575852be.zip | |
Add ClearCustomApiAccessMethods rpc call
Diffstat (limited to 'mullvad-management-interface/src')
| -rw-r--r-- | mullvad-management-interface/src/client.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mullvad-management-interface/src/client.rs b/mullvad-management-interface/src/client.rs index fd6c56e19f..93a446cbc9 100644 --- a/mullvad-management-interface/src/client.rs +++ b/mullvad-management-interface/src/client.rs @@ -575,6 +575,15 @@ impl MullvadProxyClient { .map(drop) } + /// Remove all custom API access methods. + pub async fn clear_custom_access_methods(&mut self) -> Result<()> { + self.0 + .clear_custom_api_access_methods(()) + .await + .map_err(Error::Rpc) + .map(drop) + } + /// Set the [`AccessMethod`] which [`ApiConnectionModeProvider`] should /// pick. /// |
