Feature: support IPSET rule (#2693)

This commit is contained in:
major1201
2023-04-22 20:07:47 +08:00
committed by GitHub
parent 765982e86a
commit 6eee226965
7 changed files with 107 additions and 0 deletions

View File

@ -35,6 +35,9 @@ func ParseRule(tp, payload, target string, params []string) (C.Rule, error) {
parsed, parseErr = NewProcess(payload, target, true)
case "PROCESS-PATH":
parsed, parseErr = NewProcess(payload, target, false)
case "IPSET":
noResolve := HasNoResolve(params)
parsed, parseErr = NewIPSet(payload, target, noResolve)
case "MATCH":
parsed = NewMatch(target)
default: