Skip to content

Commit

Permalink
Rename ValidateRule
Browse files Browse the repository at this point in the history
  • Loading branch information
harold-s committed Sep 17, 2024
1 parent c905517 commit 7311611
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/smokescreen/acl/v1/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (acl *ACL) Add(svc string, r Rule) error {
return err
}

err = acl.ValidateRuleDomainsGlobsAndMitm(svc, r)
err = acl.ValidateRule(svc, r)
if err != nil {
return err
}
Expand Down Expand Up @@ -206,7 +206,7 @@ func (acl *ACL) DisablePolicies(actions []string) error {
// and is not utilizing a disabled enforcement policy.
func (acl *ACL) Validate() error {
for svc, r := range acl.Rules {
err := acl.ValidateRuleDomainsGlobsAndMitm(svc, r)
err := acl.ValidateRule(svc, r)
if err != nil {
return err
}
Expand All @@ -218,7 +218,7 @@ func (acl *ACL) Validate() error {
return nil
}

func (acl *ACL) ValidateRuleDomainsGlobsAndMitm(svc string, r Rule) error {
func (acl *ACL) ValidateRule(svc string, r Rule) error {
var err error
for _, d := range r.DomainGlobs {
err = acl.ValidateDomainGlob(svc, d)
Expand Down

0 comments on commit 7311611

Please sign in to comment.