Skip to content

Commit

Permalink
check for custom allow all
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Oct 30, 2024
1 parent 167d29a commit b85585a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions logic/acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b85585a

Please sign in to comment.