This commit is contained in:
yuzuki999
2022-08-12 18:44:56 +08:00
parent c0e0945c8b
commit f00682e58e
4 changed files with 17 additions and 22 deletions

View File

@@ -5,13 +5,12 @@ import (
)
func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) error {
err := p.dispatcher.RuleManager.UpdateRule(tag, newRuleList)
return err
return p.dispatcher.RuleManager.UpdateRule(tag, newRuleList)
}
func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error {
err := p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
return err
return p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
}
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error) {