WHOWAS: Make maximum number of entries configurable

This commit is contained in:
Daniel Oaks
2016-08-14 14:07:50 +10:00
parent 6e66c5c8a7
commit 43553390d6
5 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func NewServer(config *Config) *Server {
operators: config.Operators(),
signals: make(chan os.Signal, len(SERVER_SIGNALS)),
proxyAllowedFrom: config.Server.ProxyAllowedFrom,
whoWas: NewWhoWasList(100),
whoWas: NewWhoWasList(config.Limits.WhowasEntries),
theaters: config.Theaters(),
checkIdent: config.Server.CheckIdent,
}