Merge branch 'main' into dev

This commit is contained in:
Derek Collison
2023-06-05 14:13:18 -07:00
11 changed files with 140 additions and 21 deletions

View File

@@ -2138,7 +2138,9 @@ func (c *client) authViolation() {
ErrAuthentication.Error(),
c.opts.Username)
} else {
c.Errorf(ErrAuthentication.Error())
if c.srv != nil {
c.Errorf(ErrAuthentication.Error())
}
}
if c.isMqtt() {
c.mqttEnqueueConnAck(mqttConnAckRCNotAuthorized, false)