1
0
Fork 0
forked from External/ergo

Re-enable MaxLine

This commit is contained in:
Daniel Oaks 2019-01-12 22:17:51 +10:00
parent 3db6c9472b
commit 63fde2d62a
2 changed files with 12 additions and 2 deletions

View file

@ -693,6 +693,13 @@ func (server *Server) applyConfig(config *Config, initial bool) (err error) {
server.accounts.initVHostRequestQueue()
}
// MaxLine
if config.Limits.LineLen.Tags != 512 || config.Limits.LineLen.Rest != 512 {
SupportedCapabilities.Enable(caps.MaxLine)
value := fmt.Sprintf("%d,%d", config.Limits.LineLen.Tags, config.Limits.LineLen.Rest)
CapValues.Set(caps.MaxLine, value)
}
// STS
stsPreviouslyEnabled := oldConfig != nil && oldConfig.Server.STS.Enabled
stsValue := config.Server.STS.Value()