fix AutoIptables

This commit is contained in:
maze.y2b@gmail.com
2021-12-04 19:59:41 +08:00
parent 8580ee8898
commit eb999b3bf1
5 changed files with 29 additions and 34 deletions

View File

@ -28,7 +28,9 @@ func (ps *Process) Match(metadata *C.Metadata) bool {
return strings.EqualFold(metadata.Process, ps.process)
}
// ignore match in proxy type "tproxy"
if metadata.Type == C.TPROXY || !C.OpenWrt {
//if metadata.Type == C.TPROXY || !C.AutoIptables {
if C.AutoIptables == "Enable" {
return false
}