@@ -24,6 +24,7 @@ public class DnscryptProxyConfiguration : PropertyChangedBase
2424 private int _timeout ;
2525 private int _keepalive ;
2626 private string _lb_strategy ;
27+ private bool _lb_estimator ;
2728 private int _cert_refresh_delay ;
2829 private bool _dnscrypt_ephemeral_keys ;
2930 private bool _tls_disable_session_tickets ;
@@ -32,6 +33,7 @@ public class DnscryptProxyConfiguration : PropertyChangedBase
3233 private Dictionary < string , Source > _sources ;
3334 private bool _use_syslog ;
3435 private int _netprobe_timeout ;
36+ private string _netprobe_address ;
3537 private bool _offline_mode ;
3638 private int _log_files_max_size ;
3739 private int _log_files_max_age ;
@@ -333,7 +335,7 @@ public int keepalive
333335 }
334336
335337 /// <summary>
336- /// Load-balancing strategy: 'p2' (default), 'ph', 'fastest ' or 'random'
338+ /// Load-balancing strategy: 'p2' (default), 'ph', 'first ' or 'random'
337339 /// </summary>
338340 public string lb_strategy
339341 {
@@ -345,6 +347,20 @@ public string lb_strategy
345347 }
346348 }
347349
350+ /// <summary>
351+ /// Set to `true` to constantly try to estimate the latency of all the resolvers
352+ /// and adjust the load-balancing parameters accordingly, or to `false` to disable.
353+ /// </summary>
354+ public bool lb_estimator
355+ {
356+ get => _lb_estimator ;
357+ set
358+ {
359+ _lb_estimator = value ;
360+ NotifyOfPropertyChange ( ( ) => lb_estimator ) ;
361+ }
362+ }
363+
348364 /// <summary>
349365 /// Maximum time (in seconds) to wait for network connectivity before initializing the proxy.
350366 /// Useful if the proxy is automatically started at boot, and network
@@ -361,6 +377,26 @@ public int netprobe_timeout
361377 }
362378 }
363379
380+ /// <summary>
381+ /// Address and port to try initializing a connection to, just to check
382+ /// if the network is up. It can be any address and any port, even if
383+ /// there is nothing answering these on the other side. Just don't use
384+ /// a local address, as the goal is to check for Internet connectivity.
385+ /// On Windows, a datagram with a single, nul byte will be sent, only
386+ /// when the system starts.
387+ /// On other operating systems, the connection will be initialized
388+ /// but nothing will be sent at all.
389+ /// </summary>
390+ public string netprobe_address
391+ {
392+ get => _netprobe_address ;
393+ set
394+ {
395+ _netprobe_address = value ;
396+ NotifyOfPropertyChange ( ( ) => netprobe_address ) ;
397+ }
398+ }
399+
364400 /// <summary>
365401 /// Log level (0-6, default: 2 - 0 is very verbose, 6 only contains fatal errors).
366402 /// </summary>
0 commit comments