Skip to content

Commit 191d75f

Browse files
committedApr 11, 2020
Updated dnscrypt-proxy settings for 2.0.42
1 parent 4b77f98 commit 191d75f

File tree

6 files changed

+44
-3
lines changed

6 files changed

+44
-3
lines changed
 

‎SimpleDnsCrypt/Helper/PatchHelper.cs

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using System.Collections.Generic;
2+
using System.Collections.ObjectModel;
3+
using SimpleDnsCrypt.Config;
24
using SimpleDnsCrypt.Models;
35

46
namespace 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
}

‎SimpleDnsCrypt/Models/DnscryptProxyConfiguration.cs

+25
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ public class AnonymizedDns : PropertyChangedBase
789789
}
790790

791791
private List<Route> _routes;
792+
private bool _skip_incompatible;
792793

793794
public List<Route> routes
794795
{
@@ -799,6 +800,19 @@ public List<Route> routes
799800
NotifyOfPropertyChange(() => _routes);
800801
}
801802
}
803+
804+
/// <summary>
805+
/// skip resolvers incompatible with anonymization instead of using them directly.
806+
/// </summary>
807+
public bool skip_incompatible
808+
{
809+
get => _skip_incompatible;
810+
set
811+
{
812+
_skip_incompatible = value;
813+
NotifyOfPropertyChange(() => skip_incompatible);
814+
}
815+
}
802816
}
803817

804818
public class BrokenImplementations : PropertyChangedBase
@@ -811,6 +825,7 @@ public class BrokenImplementations : PropertyChangedBase
811825
}
812826

813827
private List<string> _broken_query_padding;
828+
private List<string> _fragments_blocked;
814829

815830
public List<string> broken_query_padding
816831
{
@@ -821,6 +836,16 @@ public List<string> broken_query_padding
821836
NotifyOfPropertyChange(() => broken_query_padding);
822837
}
823838
}
839+
840+
public List<string> fragments_blocked
841+
{
842+
get => _fragments_blocked;
843+
set
844+
{
845+
_fragments_blocked = value;
846+
NotifyOfPropertyChange(() => fragments_blocked);
847+
}
848+
}
824849
}
825850

826851
public class Route : PropertyChangedBase

‎SimpleDnsCrypt/SimpleDnsCrypt.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@
526526
<PackageReference Include="helper-net">
527527
<Version>0.2.0</Version>
528528
</PackageReference>
529+
<PackageReference Include="libsodium-net">
530+
<Version>0.10.0</Version>
531+
</PackageReference>
529532
<PackageReference Include="MahApps.Metro">
530533
<Version>1.6.5</Version>
531534
</PackageReference>

‎SimpleDnsCrypt/ViewModels/MainViewModel.cs

-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ public void OnClose(CancelEventArgs cancelEventArgs)
413413
}
414414
}
415415

416-
417416

418417
/// <summary>
419418
/// The title of the window.

‎SimpleDnsCrypt/dnscrypt-proxy/dnscrypt-proxy.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ format = 'ltsv'
4040
[ip_blacklist]
4141

4242
[broken_implementations]
43-
broken_query_padding = ['cisco', 'cisco-ipv6', 'cisco-familyshield']
43+
fragments_blocked = ['cisco', 'cisco-ipv6', 'cisco-familyshield', 'cisco-familyshield-ipv6', 'quad9-dnscrypt-ip4-filter-alt', 'quad9-dnscrypt-ip4-filter-pri', 'quad9-dnscrypt-ip4-nofilter-alt', 'quad9-dnscrypt-ip4-nofilter-pri', 'quad9-dnscrypt-ip6-filter-alt', 'quad9-dnscrypt-ip6-filter-pri', 'quad9-dnscrypt-ip6-nofilter-alt', 'quad9-dnscrypt-ip6-nofilter-pri', 'cleanbrowsing-adult', 'cleanbrowsing-family-ipv6', 'cleanbrowsing-family', 'cleanbrowsing-security']
4444

4545
[anonymized_dns]
46+
skip_incompatible = false
4647

4748
[sources]
4849

‎img/preview/querylog.png

8.52 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.