Explorar o código

add new topics in acl list

Abhishek Kondur %!s(int64=2) %!d(string=hai) anos
pai
achega
21a07a8da7
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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",