Skip to content

Commit

Permalink
Add default serde value for encrypted DNS proxy setting
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 23, 2024
1 parent 983e0d7 commit c018d97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mullvad-types/src/access_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ use talpid_types::net::proxy::{CustomProxy, Shadowsocks, Socks5Local, Socks5Remo
/// Settings for API access methods.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct Settings {
#[serde(default = "Settings::create_direct")]
direct: AccessMethodSetting,
#[serde(default = "Settings::create_mullvad_bridges")]
mullvad_bridges: AccessMethodSetting,
#[serde(default = "Settings::create_encrypted_dns_proxy")]
encrypted_dns_proxy: AccessMethodSetting,
/// Custom API access methods.
custom: Vec<AccessMethodSetting>,
Expand Down

0 comments on commit c018d97

Please sign in to comment.