Feature: process condition for rules

This commit is contained in:
yaling888
2022-01-28 22:52:35 +08:00
parent d633e3d96e
commit 25e115d042
5 changed files with 46 additions and 7 deletions

View File

@ -360,6 +360,10 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
if extra.NotMatchSourceIP(metadata.SrcIP) {
continue
}
if extra.NotMatchProcessName(metadata.Process) {
continue
}
}
return adapter, rule, nil