update gvisor
Chore: use "-m mark --mark" instead of "-m owner --uid-owner"
This commit is contained in:
Clash-Mini
2022-02-04 06:11:24 +08:00
parent 176eb3926b
commit 3b277aa8ec
19 changed files with 52 additions and 1981 deletions

View File

@ -3,6 +3,7 @@ package common
import (
"errors"
"net"
"strings"
C "github.com/Dreamacro/clash/constant"
)
@ -51,3 +52,17 @@ func FindSourceIPs(params []string) []*net.IPNet {
}
return nil
}
func FindProcessName(params []string) []string {
var processNames []string
for _, p := range params {
if strings.HasPrefix(p, "P:") {
processNames = append(processNames, strings.TrimPrefix(p, "P:"))
}
}
if len(processNames) > 0 {
return processNames
}
return nil
}