mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
parent
9214d978d0
commit
3ee6fd1f6c
5 changed files with 41 additions and 13 deletions
|
|
@ -530,6 +530,8 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
} else if oldConfig.Server.IPCheckScript.MaxConcurrency != config.Server.IPCheckScript.MaxConcurrency ||
|
||||
oldConfig.Accounts.AuthScript.MaxConcurrency != config.Accounts.AuthScript.MaxConcurrency {
|
||||
return fmt.Errorf("Cannot change max-concurrency for scripts after launching the server, rehash aborted")
|
||||
} else if oldConfig.Server.OverrideServicesHostname != config.Server.OverrideServicesHostname {
|
||||
return fmt.Errorf("Cannot change override-services-hostname after launching the server, rehash aborted")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -563,6 +565,10 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
if maxAuthConc != 0 {
|
||||
server.semaphores.AuthScript.Initialize(maxAuthConc)
|
||||
}
|
||||
|
||||
if err := overrideServicePrefixes(config.Server.OverrideServicesHostname); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if oldConfig != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue