瀏覽代碼

fix egress ranges on peer via policies

abhishek9686 3 月之前
父節點
當前提交
f82b9e861d
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      logic/egress.go

+ 0 - 4
logic/egress.go

@@ -46,10 +46,6 @@ func DoesNodeHaveAccessToEgress(node *models.Node, e *schema.Egress, acls []mode
 		}
 		}
 		srcVal := ConvAclTagToValueMap(acl.Src)
 		srcVal := ConvAclTagToValueMap(acl.Src)
 		for _, dstI := range acl.Dst {
 		for _, dstI := range acl.Dst {
-
-			if dstI.ID == models.NodeTagID && dstI.Value == "*" {
-				return true
-			}
 			if dstI.ID == models.EgressID && dstI.Value == e.ID {
 			if dstI.ID == models.EgressID && dstI.Value == e.ID {
 				e := schema.Egress{ID: dstI.Value}
 				e := schema.Egress{ID: dstI.Value}
 				err := e.Get(db.WithContext(context.TODO()))
 				err := e.Get(db.WithContext(context.TODO()))