Change the default for max_goroutines #2257
This commit is contained in:
parent
62cc334f46
commit
bc20917840
|
@ -185,9 +185,6 @@ func (s *Server) Prepare(config *ServerConfig) error {
|
||||||
return fmt.Errorf("DNS: invalid custom blocking IP address specified")
|
return fmt.Errorf("DNS: invalid custom blocking IP address specified")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if s.conf.MaxGoroutines == 0 {
|
|
||||||
s.conf.MaxGoroutines = 50
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set default values in the case if nothing is configured
|
// Set default values in the case if nothing is configured
|
||||||
|
|
|
@ -120,6 +120,7 @@ var config = configuration{
|
||||||
Ratelimit: 20,
|
Ratelimit: 20,
|
||||||
RefuseAny: true,
|
RefuseAny: true,
|
||||||
AllServers: false,
|
AllServers: false,
|
||||||
|
MaxGoroutines: 100, // maximum concurrent queries
|
||||||
},
|
},
|
||||||
FilteringEnabled: true, // whether or not use filter lists
|
FilteringEnabled: true, // whether or not use filter lists
|
||||||
FiltersUpdateIntervalHours: 24,
|
FiltersUpdateIntervalHours: 24,
|
||||||
|
|
Loading…
Reference in New Issue