mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
fix: uid match
This commit is contained in:
parent
b8d5321615
commit
9c2ca0feb0
@ -74,7 +74,7 @@ func (u *Uid) Match(metadata *C.Metadata) bool {
|
|||||||
var uid int32
|
var uid int32
|
||||||
if metadata.Uid != 0 {
|
if metadata.Uid != 0 {
|
||||||
uid = metadata.Uid
|
uid = metadata.Uid
|
||||||
} else if uid, err := process.FindUid(metadata.NetWork.String(), metadata.SrcIP, srcPort); err == nil {
|
} else if uid, err = process.FindUid(metadata.NetWork.String(), metadata.SrcIP, srcPort); err == nil {
|
||||||
metadata.Uid = uid
|
metadata.Uid = uid
|
||||||
} else {
|
} else {
|
||||||
log.Warnln("[UID] could not get uid from %s", metadata.String())
|
log.Warnln("[UID] could not get uid from %s", metadata.String())
|
||||||
|
Loading…
Reference in New Issue
Block a user