File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ cache_size = 256
2323cache_min_ttl = 600
2424cache_max_ttl = 86400
2525cache_neg_ttl = 60
26+ disabled_server_names = []
27+ refused_code_in_responses = false
2628[query_log ]
2729 format = ' ltsv'
2830
You can’t perform that action at this time.
0 commit comments