浏览代码

add new topics in acl list

Abhishek Kondur 2 年之前
父节点
当前提交
21a07a8da7
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      mq/emqx.go

+ 10 - 0
mq/emqx.go

@@ -281,6 +281,16 @@ func CreateHostACL(hostID, serverName string) error {
 				Permission: "allow",
 				Action:     "all",
 			},
+			{
+				Topic:      fmt.Sprintf("peer/host/%s/%s", hostID, serverName),
+				Permission: "allow",
+				Action:     "all",
+			},
+			{
+				Topic:      fmt.Sprintf("fw/host/%s/%s", hostID, serverName),
+				Permission: "allow",
+				Action:     "all",
+			},
 			{
 				Topic:      fmt.Sprintf("dns/all/%s/%s", hostID, serverName),
 				Permission: "allow",