Bunch of updates
This commit is contained in:
parent
baa7ca4a82
commit
8bf7e3c986
|
@ -46,7 +46,7 @@ func NewRR(s string) dns.RR {
|
|||
}
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU()*2 + 1)
|
||||
runtime.GOMAXPROCS(runtime.NumCPU() * 4)
|
||||
for z, rr := range zones {
|
||||
rrx := rr.(*dns.SOA) // Some foo needed to created actual RR, on the not a reference
|
||||
dns.HandleFunc(z, func(w dns.ResponseWriter, r *dns.Msg) {
|
||||
|
|
|
@ -161,7 +161,7 @@ func serve(net, name, secret string) {
|
|||
}
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU()*2 + 1)
|
||||
runtime.GOMAXPROCS(runtime.NumCPU()*4)
|
||||
cpuprofile := flag.String("cpuprofile", "", "write cpu profile to file")
|
||||
printf = flag.Bool("print", false, "print replies")
|
||||
compress = flag.Bool("compress", false, "compress replies")
|
||||
|
|
Loading…
Reference in New Issue