2
0
Эх сурвалжийг харах

Merge pull request #3442 from gravitl/release-v0.90.0

check for service type and protocol on bi directional policies
Abhishek K 3 сар өмнө
parent
commit
35ddfc7a90
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      logic/acls.go

+ 1 - 1
logic/acls.go

@@ -1411,7 +1411,7 @@ func checkIfAnyPolicyisUniDirectional(targetNode models.Node) bool {
 		if !acl.Enabled {
 			continue
 		}
-		if acl.AllowedDirection == models.TrafficDirectionBi {
+		if acl.AllowedDirection == models.TrafficDirectionBi && acl.Proto == models.ALL && acl.ServiceType == models.Any {
 			continue
 		}
 		if acl.Proto != models.ALL || acl.ServiceType != models.Any {