diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2023-09-19 13:53:34 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2023-09-20 11:09:01 +0200 |
| commit | 6567519f053bf9002eb6491bd1f860843fdfc275 (patch) | |
| tree | eb3d368f95d3e2028edcfda66bee8367bdf3b30e /mullvad-cli/src | |
| parent | d9fb71a84bcab8898a4e310f513bc2e15921b22d (diff) | |
| download | mullvadvpn-6567519f053bf9002eb6491bd1f860843fdfc275.tar.xz mullvadvpn-6567519f053bf9002eb6491bd1f860843fdfc275.zip | |
Add social media blocklists to daemon+CLI
When infra has deployed these block lists to the relays,
this setting will allow blocking social media domains
directly with the app
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/dns.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mullvad-cli/src/cmds/dns.rs b/mullvad-cli/src/cmds/dns.rs index fd2b215936..90ae609ae4 100644 --- a/mullvad-cli/src/cmds/dns.rs +++ b/mullvad-cli/src/cmds/dns.rs @@ -40,6 +40,10 @@ pub enum DnsSet { /// Block domains known to be used for gambling #[arg(long)] block_gambling: bool, + + /// Block domains related to social media + #[arg(long)] + block_social_media: bool, }, /// Set a list of custom DNS servers @@ -62,6 +66,7 @@ impl Dns { block_malware, block_adult_content, block_gambling, + block_social_media, }, } => { Self::set_default( @@ -70,6 +75,7 @@ impl Dns { block_malware, block_adult_content, block_gambling, + block_social_media, ) .await } @@ -94,6 +100,10 @@ impl Dns { options.default_options.block_adult_content ); println!("Block gambling: {}", options.default_options.block_gambling); + println!( + "Block social media: {}", + options.default_options.block_social_media + ); } DnsState::Custom => { println!("Custom DNS: yes\nServers:"); @@ -112,6 +122,7 @@ impl Dns { block_malware: bool, block_adult_content: bool, block_gambling: bool, + block_social_media: bool, ) -> Result<()> { let mut rpc = MullvadProxyClient::new().await?; let settings = rpc.get_settings().await?; @@ -123,6 +134,7 @@ impl Dns { block_malware, block_adult_content, block_gambling, + block_social_media, }, ..settings.tunnel_options.dns_options }) |
