This commit is contained in:
zhouyuyan
2017-09-01 19:53:02 +08:00
parent 8bf6ccaa25
commit b98ae9ec6f
4 changed files with 27 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ const (
)
func (c *client) CheckTopicAuth(typ int, topic string) bool {
if !c.broker.config.Acl {
if c.typ != CLIENT || !c.broker.config.Acl {
return true
}
if strings.HasPrefix(topic, "$queue/") {