diff --git a/internal/corazawaf/waf.go b/internal/corazawaf/waf.go index 276cff1f6..cb117c9cc 100644 --- a/internal/corazawaf/waf.go +++ b/internal/corazawaf/waf.go @@ -390,7 +390,3 @@ func (w *WAF) Validate() error { return nil } - -func (w *WAF) GetRuleGroup() RuleGroup { - return w.Rules -} diff --git a/waf.go b/waf.go index f476caa3e..ec3da10e5 100644 --- a/waf.go +++ b/waf.go @@ -22,7 +22,7 @@ type WAF interface { // NewTransaction Creates a new initialized transaction for this WAF instance NewTransaction() types.Transaction NewTransactionWithID(id string) types.Transaction - GetRuleGroup() corazawaf.RuleGroup + GetRuleGroup() *corazawaf.RuleGroup } // NewWAF creates a new WAF instance with the provided configuration. @@ -125,6 +125,6 @@ func (w wafWrapper) NewTransactionWithID(id string) types.Transaction { return w.waf.NewTransactionWithID(id) } -func (w wafWrapper) GetRuleGroup() corazawaf.RuleGroup { - return w.waf.Rules +func (w wafWrapper) GetRuleGroup() *corazawaf.RuleGroup { + return &w.waf.Rules }