Change the default for max_goroutines #2257

This commit is contained in:
Andrey Meshkov 2020-11-04 13:41:40 +03:00
parent 62cc334f46
commit bc20917840
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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,