mirror of
https://github.com/jeremyd/ergo.git
synced 2026-04-29 17:09:59 -07:00
fix SASL enable-disable logic
This commit is contained in:
@@ -794,7 +794,7 @@ func (server *Server) applyConfig(config *Config, initial bool) error {
|
||||
|
||||
// SASL
|
||||
oldAccountConfig := server.AccountConfig()
|
||||
authPreviouslyEnabled := oldAccountConfig != nil && !oldAccountConfig.AuthenticationEnabled
|
||||
authPreviouslyEnabled := oldAccountConfig != nil && oldAccountConfig.AuthenticationEnabled
|
||||
if config.Accounts.AuthenticationEnabled && !authPreviouslyEnabled {
|
||||
// enabling SASL
|
||||
SupportedCapabilities.Enable(caps.SASL)
|
||||
|
||||
Reference in New Issue
Block a user