mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-08 10:23:43 +08:00
Chore: cache process name when resolve failed (#900)
This commit is contained in:
parent
3a5f31d5a1
commit
639997db38
@ -36,7 +36,6 @@ func (ps *Process) Match(metadata *C.Metadata) bool {
|
||||
name, err := getExecPathFromAddress(metadata)
|
||||
if err != nil {
|
||||
log.Debugln("[%s] getExecPathFromAddress error: %s", C.Process.String(), err.Error())
|
||||
return false
|
||||
}
|
||||
|
||||
processCache.Set(key, name)
|
||||
|
@ -35,7 +35,6 @@ func (ps *Process) Match(metadata *C.Metadata) bool {
|
||||
name, err := getExecPathFromAddress(metadata)
|
||||
if err != nil {
|
||||
log.Debugln("[%s] getExecPathFromAddress error: %s", C.Process.String(), err.Error())
|
||||
return false
|
||||
}
|
||||
|
||||
processCache.Set(key, name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user