Set default ratelimit to 30/sec
This commit is contained in:
parent
e4998651fe
commit
f94c63ed5b
|
@ -253,7 +253,7 @@ const coreDNSConfigTemplate = `.:{{.Port}} {
|
|||
{{end}}
|
||||
}{{end}}
|
||||
{{.Pprof}}
|
||||
ratelimit 30
|
||||
ratelimit
|
||||
hosts {
|
||||
fallthrough
|
||||
}
|
||||
|
|
|
@ -65,8 +65,8 @@ var directives = []string{
|
|||
"prometheus",
|
||||
"errors",
|
||||
"log",
|
||||
"dnsfilter",
|
||||
"ratelimit",
|
||||
"dnsfilter",
|
||||
"dnstap",
|
||||
"chaos",
|
||||
"loadbalance",
|
||||
|
|
|
@ -23,7 +23,7 @@ import (
|
|||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const defaultRatelimit = 100
|
||||
const defaultRatelimit = 30
|
||||
const defaultResponseSize = 1000
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue