Set default ratelimit to 30/sec

This commit is contained in:
Andrey Meshkov 2018-11-25 23:32:28 +03:00
parent e4998651fe
commit f94c63ed5b
3 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ const coreDNSConfigTemplate = `.:{{.Port}} {
{{end}} {{end}}
}{{end}} }{{end}}
{{.Pprof}} {{.Pprof}}
ratelimit 30 ratelimit
hosts { hosts {
fallthrough fallthrough
} }

View File

@ -65,8 +65,8 @@ var directives = []string{
"prometheus", "prometheus",
"errors", "errors",
"log", "log",
"dnsfilter",
"ratelimit", "ratelimit",
"dnsfilter",
"dnstap", "dnstap",
"chaos", "chaos",
"loadbalance", "loadbalance",

View File

@ -23,7 +23,7 @@ import (
"golang.org/x/net/context" "golang.org/x/net/context"
) )
const defaultRatelimit = 100 const defaultRatelimit = 30
const defaultResponseSize = 1000 const defaultResponseSize = 1000
var ( var (