浏览代码

Merge branch 'NET-258' of https://github.com/gravitl/netmaker into NET-258-latest

Abhishek Kondur 2 年之前
父节点
当前提交
8b2db29ccc
共有 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",
 				Permission: "allow",
 				Action:     "all",
 				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),
 				Topic:      fmt.Sprintf("dns/all/%s/%s", hostID, serverName),
 				Permission: "allow",
 				Permission: "allow",