Set default ratelimit to 30/sec
This commit is contained in:
parent
e4998651fe
commit
f94c63ed5b
|
@ -253,7 +253,7 @@ const coreDNSConfigTemplate = `.:{{.Port}} {
|
||||||
{{end}}
|
{{end}}
|
||||||
}{{end}}
|
}{{end}}
|
||||||
{{.Pprof}}
|
{{.Pprof}}
|
||||||
ratelimit 30
|
ratelimit
|
||||||
hosts {
|
hosts {
|
||||||
fallthrough
|
fallthrough
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,8 +65,8 @@ var directives = []string{
|
||||||
"prometheus",
|
"prometheus",
|
||||||
"errors",
|
"errors",
|
||||||
"log",
|
"log",
|
||||||
"dnsfilter",
|
|
||||||
"ratelimit",
|
"ratelimit",
|
||||||
|
"dnsfilter",
|
||||||
"dnstap",
|
"dnstap",
|
||||||
"chaos",
|
"chaos",
|
||||||
"loadbalance",
|
"loadbalance",
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue