Fix: Remove EnableProcess from config.go and enable-process from config.yaml.

Fix: FindProcess is now enabled by default when the rule set contains process-name rules.
This commit is contained in:
Larvan2
2023-01-20 16:29:08 +08:00
parent 5bbf73e3b5
commit 8a7027e8d6
10 changed files with 36 additions and 17 deletions

View File

@ -12,6 +12,10 @@ type ipcidrStrategy struct {
trie *trie.IpCidrTrie
}
func (i *ipcidrStrategy) ShouldFindProcess() bool {
return false
}
func (i *ipcidrStrategy) Match(metadata *C.Metadata) bool {
return i.trie != nil && i.trie.IsContain(metadata.DstIP.AsSlice())
}