Skip to content

Commit c048d82

Browse files
committed
Updated dnscrypt-proxy.toml
1 parent d78bc2d commit c048d82

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

SimpleDnsCrypt/Models/DnscryptProxyConfiguration.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public class DnscryptProxyConfiguration : PropertyChangedBase
4848
private bool _ignore_system_dns;
4949
private Dictionary<string, Static> _static;
5050
private string _proxy;
51+
private ObservableCollection<string> _disabled_server_names;
52+
private bool _refused_code_in_responses;
5153

5254
[TomlIgnore]
5355
public new bool IsNotifying
@@ -121,6 +123,34 @@ public bool ipv6_servers
121123
}
122124
}
123125

126+
/// <summary>
127+
/// Server names to avoid even if they match all criteria
128+
/// </summary>
129+
public ObservableCollection<string> disabled_server_names
130+
{
131+
get => _disabled_server_names;
132+
set
133+
{
134+
_disabled_server_names = value;
135+
NotifyOfPropertyChange(() => disabled_server_names);
136+
}
137+
}
138+
139+
/// <summary>
140+
/// Use the REFUSED return code for blocked responses
141+
/// Setting this to `false` means that some responses will be lies.
142+
/// Unfortunately, `false` appears to be required for Android 8+
143+
/// </summary>
144+
public bool refused_code_in_responses
145+
{
146+
get => _refused_code_in_responses;
147+
set
148+
{
149+
_refused_code_in_responses = value;
150+
NotifyOfPropertyChange(() => refused_code_in_responses);
151+
}
152+
}
153+
124154
/// <summary>
125155
/// Use servers implementing the DNSCrypt protocol
126156
/// </summary>

SimpleDnsCrypt/dnscrypt-proxy/dnscrypt-proxy.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ cache_size = 256
2323
cache_min_ttl = 600
2424
cache_max_ttl = 86400
2525
cache_neg_ttl = 60
26+
disabled_server_names = []
27+
refused_code_in_responses = false
2628
[query_log]
2729
format = 'ltsv'
2830

0 commit comments

Comments
 (0)