From dd528a1753d4540cadee7ecc56687656c5ff66ca Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sat, 12 Oct 2024 19:16:15 -0500 Subject: [PATCH] chore(policy): Change `expandAutoGroup` into a receiver func --- hscontrol/policy/acls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscontrol/policy/acls.go b/hscontrol/policy/acls.go index 9c14a43f..936bd43a 100644 --- a/hscontrol/policy/acls.go +++ b/hscontrol/policy/acls.go @@ -671,7 +671,7 @@ func (pol *ACLPolicy) ExpandAlias( } if isAutoGroup(alias) { - return expandAutoGroup(pol, alias, nodes) + return pol.expandAutoGroup(alias, nodes) } // if alias is a user @@ -990,7 +990,7 @@ func (pol *ACLPolicy) expandIPsFromIPPrefix( return build.IPSet() } -func expandAutoGroup(pol *ACLPolicy, alias string, nodes types.Nodes) (*netipx.IPSet, error) { +func (pol *ACLPolicy) expandAutoGroup(alias string, nodes types.Nodes) (*netipx.IPSet, error) { switch { case strings.HasPrefix(alias, autogroupInternet): return theInternet(), nil