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}}
{{.Pprof}}
ratelimit 30
ratelimit
hosts {
fallthrough
}

View File

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

View File

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