11using System . Collections . Generic ;
2+ using System . Collections . ObjectModel ;
3+ using SimpleDnsCrypt . Config ;
24using SimpleDnsCrypt . Models ;
35
46namespace SimpleDnsCrypt . Helper
@@ -60,8 +62,14 @@ public static bool Patch()
6062 if ( version . Equals ( "0.7.1" ) )
6163 {
6264 //changed: ignore_system_dns = true
65+ //changed: block_unqualified = true
66+ //changed: block_undelegated = true
6367 //added: broken_implementations
68+ //added: fallback_resolvers (instead of fallback_resolver)
6469 DnscryptProxyConfigurationManager . DnscryptProxyConfiguration . ignore_system_dns = true ;
70+ DnscryptProxyConfigurationManager . DnscryptProxyConfiguration . block_unqualified = true ;
71+ DnscryptProxyConfigurationManager . DnscryptProxyConfiguration . block_undelegated = true ;
72+ DnscryptProxyConfigurationManager . DnscryptProxyConfiguration . fallback_resolvers = new ObservableCollection < string > ( Global . DefaultFallbackResolvers ) ;
6573 var sources = DnscryptProxyConfigurationManager . DnscryptProxyConfiguration . sources ;
6674 if ( ! sources . ContainsKey ( "relays" ) )
6775 {
@@ -79,7 +87,12 @@ public static bool Patch()
7987 DnscryptProxyConfigurationManager . DnscryptProxyConfiguration . broken_implementations =
8088 new BrokenImplementations
8189 {
82- broken_query_padding = new List < string > { "cisco" , "cisco-ipv6" , "cisco-familyshield" }
90+ //broken_query_padding = new List<string> { "cisco", "cisco-ipv6", "cisco-familyshield" },
91+ fragments_blocked = new List < string > { "cisco" , "cisco-ipv6" , "cisco-familyshield" ,
92+ "cisco-familyshield-ipv6" , "quad9-dnscrypt-ip4-filter-alt" , "quad9-dnscrypt-ip4-filter-pri" ,
93+ "quad9-dnscrypt-ip4-nofilter-alt" , "quad9-dnscrypt-ip4-nofilter-pri" , "quad9-dnscrypt-ip6-filter-alt" ,
94+ "quad9-dnscrypt-ip6-filter-pri" , "quad9-dnscrypt-ip6-nofilter-alt" , "quad9-dnscrypt-ip6-nofilter-pri" ,
95+ "cleanbrowsing-adult" , "cleanbrowsing-family-ipv6" , "cleanbrowsing-family" , "cleanbrowsing-security" }
8396 } ;
8497 return DnscryptProxyConfigurationManager . SaveConfiguration ( ) ;
8598 }
0 commit comments