diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-02-14 09:50:06 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-02-15 16:28:38 +0100 |
| commit | 25f0f2ede5cc241741988586cc549d600d34460d (patch) | |
| tree | bb4038e1c3e8d7e9e1e63aa2bd8dadcf5c008c3b /mullvad-daemon/src | |
| parent | 02c2042bedc65de21847213204651c55c9dd6f6e (diff) | |
| download | mullvadvpn-25f0f2ede5cc241741988586cc549d600d34460d.tar.xz mullvadvpn-25f0f2ede5cc241741988586cc549d600d34460d.zip | |
Add `force_direct` flag to API override
Diffstat (limited to 'mullvad-daemon/src')
| -rw-r--r-- | mullvad-daemon/src/api.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mullvad-daemon/src/api.rs b/mullvad-daemon/src/api.rs index 5db03c2008..1e6ba296a3 100644 --- a/mullvad-daemon/src/api.rs +++ b/mullvad-daemon/src/api.rs @@ -328,10 +328,7 @@ impl AccessModeSelector { #[cfg(feature = "api-override")] { use mullvad_api::API; - // If the API address has been explicitly overridden, it should - // always be used. This implies that a direct API connection mode is - // used. - if API.address.is_some() { + if API.force_direct { log::debug!("API proxies are disabled"); let endpoint = resolve_allowed_endpoint( &ApiConnectionMode::Direct, @@ -350,8 +347,8 @@ impl AccessModeSelector { } log::debug!( - "The `api-override` feature is enabled, but the API address \ - was not overridden. Selecting API access methods as normal" + "The `api-override` feature is enabled, but a direct connection \ + is not enforced. Selecting API access methods as normal" ); } |
