Update Mullvad DNS endpoint

switch from adblock. to base. which includes malware blocking too
https://mullvad.net/en/help/dns-over-https-and-dns-over-tls#specifications

Signed-off-by: Tavi <tavi@divested.dev>
This commit is contained in:
Tavi 2024-11-19 08:48:50 -05:00
parent bfa65c85a3
commit 66cdf9aaf9
No known key found for this signature in database
GPG Key ID: E599F62ECBAEAF2E
9 changed files with 10 additions and 10 deletions

View File

@ -118,7 +118,7 @@ index c5cb1f5b7cf8..bcd253836663 100644
+ /** + /**
+ * @hide + * @hide
+ */ + */
+ public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "adblock.doh.mullvad.net"; + public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "base.dns.mullvad.net";
+ /** + /**
+ * @hide + * @hide
+ */ + */

View File

@ -118,7 +118,7 @@ index 111a8c48a46c..962c4215f7b6 100644
+ /** + /**
+ * @hide + * @hide
+ */ + */
+ public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "adblock.doh.mullvad.net"; + public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "base.dns.mullvad.net";
+ /** + /**
+ * @hide + * @hide
+ */ + */

View File

@ -118,7 +118,7 @@ index ed03f5198d6f..dfdbbe085c0f 100644
+ /** + /**
+ * @hide + * @hide
+ */ + */
+ public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "adblock.doh.mullvad.net"; + public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "base.dns.mullvad.net";
+ /** + /**
+ * @hide + * @hide
+ */ + */

View File

@ -146,7 +146,7 @@ index 9c8d08fb1..27263d2a4 100644
+ /** + /**
+ * @hide + * @hide
+ */ + */
+ public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "adblock.doh.mullvad.net"; + public static final String PRIVATE_DNS_SPECIFIER_MULLVAD = "base.dns.mullvad.net";
+ +
+ /** + /**
+ * @hide + * @hide

View File

@ -55,7 +55,7 @@ index 829a5e50..f16f2c7a 100644
+ ConnectivitySettingsManager.setPrivateDnsMode(mContext, + ConnectivitySettingsManager.setPrivateDnsMode(mContext,
+ ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); + ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME);
+ } else if ("mullvad".equals(currentPrivateDnsMode)) { + } else if ("mullvad".equals(currentPrivateDnsMode)) {
+ ConnectivitySettingsManager.setPrivateDnsHostname(mContext, "adblock.dns.mullvad.net"); + ConnectivitySettingsManager.setPrivateDnsHostname(mContext, "base.dns.mullvad.net");
+ ConnectivitySettingsManager.setPrivateDnsMode(mContext, + ConnectivitySettingsManager.setPrivateDnsMode(mContext,
+ ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); + ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME);
+ } else if ("quadnine".equals(currentPrivateDnsMode)) { + } else if ("quadnine".equals(currentPrivateDnsMode)) {

View File

@ -128,7 +128,7 @@ index 698965172f..444f2f9131 100644
+ <string name="private_dns_hostname_google" translatable="false">dns.google</string> + <string name="private_dns_hostname_google" translatable="false">dns.google</string>
+ +
+ <string name="private_dns_mode_mullvad" translatable="false">Mullvad (SE)</string> + <string name="private_dns_mode_mullvad" translatable="false">Mullvad (SE)</string>
+ <string name="private_dns_hostname_mullvad" translatable="false">adblock.dns.mullvad.net</string> + <string name="private_dns_hostname_mullvad" translatable="false">base.dns.mullvad.net</string>
+ +
+ <string name="private_dns_mode_quadnine" translatable="false">Quad9 (CH)</string> + <string name="private_dns_mode_quadnine" translatable="false">Quad9 (CH)</string>
+ <string name="private_dns_hostname_quadnine" translatable="false">dns.quad9.net</string> + <string name="private_dns_hostname_quadnine" translatable="false">dns.quad9.net</string>

View File

@ -78,8 +78,8 @@ index 0f3c09dc..3c593369 100644
+ false}, + false},
+ {"Mullvad-AdBlock", + {"Mullvad-AdBlock",
+ {"2a07:e340::3", "194.242.2.3"}, + {"2a07:e340::3", "194.242.2.3"},
+ "adblock.dns.mullvad.net", + "base.dns.mullvad.net",
+ "https://adblock.dns.mullvad.net/dns-query", + "https://base.dns.mullvad.net/dns-query",
+ false}, + false},
+ {"QuadNine", + {"QuadNine",
+ {"2620:fe::9", "2620:fe::fe", "9.9.9.9", "149.112.112.112"}, + {"2620:fe::9", "2620:fe::fe", "9.9.9.9", "149.112.112.112"},

View File

@ -55,7 +55,7 @@ index 2a77cec7..83322355 100644
+ ConnectivitySettingsManager.setPrivateDnsMode(mContext, + ConnectivitySettingsManager.setPrivateDnsMode(mContext,
+ ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); + ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME);
+ } else if ("mullvad".equals(currentPrivateDnsMode)) { + } else if ("mullvad".equals(currentPrivateDnsMode)) {
+ ConnectivitySettingsManager.setPrivateDnsHostname(mContext, "adblock.dns.mullvad.net"); + ConnectivitySettingsManager.setPrivateDnsHostname(mContext, "base.dns.mullvad.net");
+ ConnectivitySettingsManager.setPrivateDnsMode(mContext, + ConnectivitySettingsManager.setPrivateDnsMode(mContext,
+ ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); + ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME);
+ } else if ("quadnine".equals(currentPrivateDnsMode)) { + } else if ("quadnine".equals(currentPrivateDnsMode)) {

View File

@ -128,7 +128,7 @@ index aa89f73f47c..f0dd5226d1c 100644
+ <string name="private_dns_hostname_google" translatable="false">dns.google</string> + <string name="private_dns_hostname_google" translatable="false">dns.google</string>
+ +
+ <string name="private_dns_mode_mullvad" translatable="false">Mullvad (SE)</string> + <string name="private_dns_mode_mullvad" translatable="false">Mullvad (SE)</string>
+ <string name="private_dns_hostname_mullvad" translatable="false">adblock.dns.mullvad.net</string> + <string name="private_dns_hostname_mullvad" translatable="false">base.dns.mullvad.net</string>
+ +
+ <string name="private_dns_mode_quadnine" translatable="false">Quad9 (CH)</string> + <string name="private_dns_mode_quadnine" translatable="false">Quad9 (CH)</string>
+ <string name="private_dns_hostname_quadnine" translatable="false">dns.quad9.net</string> + <string name="private_dns_hostname_quadnine" translatable="false">dns.quad9.net</string>