From b85585ab9ec18adbeab11c52b71a922c8997d003 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Wed, 30 Oct 2024 19:40:41 +0400 Subject: [PATCH] check for custom allow all --- logic/acls.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/logic/acls.go b/logic/acls.go index 53e0162d0..622b18a98 100644 --- a/logic/acls.go +++ b/logic/acls.go @@ -487,6 +487,11 @@ func IsNodeAllowedToCommunicate(node, peer models.Node) bool { // fmt.Printf("\n======> DSTMAP: %+v\n", dstMap) // fmt.Printf("\n======> node Tags: %+v\n", node.Tags) // fmt.Printf("\n======> peer Tags: %+v\n", peer.Tags) + if _, ok := srcMap["*"]; ok { + if _, ok := dstMap["*"]; ok { + return true + } + } for tagID := range node.Tags { if _, ok := dstMap[tagID.String()]; ok { if _, ok := srcMap["*"]; ok {