fix: uid match
This commit is contained in:
parent
162dcd56e6
commit
2c2dcb683c
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ func (u *Uid) Match(metadata *C.Metadata) bool {
|
|||
var uid int32
|
||||
if metadata.Uid != 0 {
|
||||
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
|
||||
} else {
|
||||
log.Warnln("[UID] could not get uid from %s", metadata.String())
|
||||
|
|
Loading…
Reference in a new issue