mirror of
https://github.com/fhmq/hmq.git
synced 2026-05-04 07:08:32 +00:00
update
This commit is contained in:
@@ -341,7 +341,7 @@ func (c *client) processClientSubscribe(packet *packets.SubscribePacket) {
|
|||||||
for i, topic := range topics {
|
for i, topic := range topics {
|
||||||
t := topic
|
t := topic
|
||||||
//check topic auth for client
|
//check topic auth for client
|
||||||
if c.broker.CheckTopicAuth(SUB, c.info.username, topic) {
|
if !b.CheckTopicAuth(SUB, c.info.username, topic) {
|
||||||
log.Error("Sub topic Auth failed: ", zap.String("topic", topic), zap.String("ClientID", c.info.clientID))
|
log.Error("Sub topic Auth failed: ", zap.String("topic", topic), zap.String("ClientID", c.info.clientID))
|
||||||
retcodes = append(retcodes, QosFailure)
|
retcodes = append(retcodes, QosFailure)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user