mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge branch 'main' into dev
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user