disable process name on android

This commit is contained in:
Adlyq
2022-04-09 17:54:01 +08:00
parent 9a3bc8ef9e
commit 7be3e617ab
3 changed files with 4 additions and 232 deletions

View File

@ -3,6 +3,7 @@ package process
import (
"errors"
"net"
"runtime"
C "github.com/Dreamacro/clash/constant"
)
@ -23,6 +24,9 @@ func FindProcessName(network string, srcIP net.IP, srcPort int) (string, error)
}
func ShouldFindProcess(metadata *C.Metadata) bool {
if runtime.GOOS == "android" {
return false
}
if metadata.Process != "" {
return false
}