From acb4a984664b95d280522792be56bec2146da430 Mon Sep 17 00:00:00 2001 From: Aleksey Dmitrevskiy Date: Thu, 28 Feb 2019 13:40:40 +0300 Subject: [PATCH] [change] dnsforward: Add comments for public fields --- dnsforward/dnsforward.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dnsforward/dnsforward.go b/dnsforward/dnsforward.go index 4f910bc8..7b8430ed 100644 --- a/dnsforward/dnsforward.go +++ b/dnsforward/dnsforward.go @@ -62,12 +62,12 @@ type FilteringConfig struct { ProtectionEnabled bool `yaml:"protection_enabled"` // whether or not use any of dnsfilter features FilteringEnabled bool `yaml:"filtering_enabled"` // whether or not use filter lists BlockedResponseTTL uint32 `yaml:"blocked_response_ttl"` // if 0, then default is used (3600) - QueryLogEnabled bool `yaml:"querylog_enabled"` - Ratelimit int `yaml:"ratelimit"` - RatelimitWhitelist []string `yaml:"ratelimit_whitelist"` - RefuseAny bool `yaml:"refuse_any"` - BootstrapDNS []string `yaml:"bootstrap_dns"` - AllServers bool `yaml:"all_servers"` + QueryLogEnabled bool `yaml:"querylog_enabled"` // if true, query log is enabled + Ratelimit int `yaml:"ratelimit"` // max number of requests per second from a given IP (0 to disable) + RatelimitWhitelist []string `yaml:"ratelimit_whitelist"` // a list of whitelisted client IP addresses + RefuseAny bool `yaml:"refuse_any"` // if true, refuse ANY requests + BootstrapDNS []string `yaml:"bootstrap_dns"` // a list of bootstrap DNS for DoH and DoT (plain DNS only) + AllServers bool `yaml:"all_servers"` // if true, parallel queries to all configured upstream servers are enabled dnsfilter.Config `yaml:",inline"` }