server: Fix the PROXY command

This commit is contained in:
Daniel Oaks 2017-09-29 07:03:47 +10:00
parent 3f4bf38bee
commit 8b1f722655
1 changed files with 3 additions and 0 deletions

View File

@ -1260,6 +1260,9 @@ func (server *Server) applyConfig(config *Config, initial bool) error {
server.password = nil server.password = nil
} }
// apply new PROXY command restrictions
server.proxyAllowedFrom = config.Server.ProxyAllowedFrom
// apply new connectionlimits // apply new connectionlimits
server.connectionLimitsMutex.Lock() server.connectionLimitsMutex.Lock()
server.connectionLimits = connectionLimits server.connectionLimits = connectionLimits