Fix direction detection for unsupported protocols

This commit is contained in:
Daniel
2022-06-22 09:56:21 +02:00
parent 86d4f64d42
commit 9c0b7ddf51

View File

@@ -60,7 +60,7 @@ func Lookup(pktInfo *packet.Info, fast bool) (pid int, inbound bool, err error)
return udp6Table.lookup(pktInfo, fast)
default:
return socket.UndefinedProcessID, false, errors.New("unsupported protocol for finding process")
return socket.UndefinedProcessID, pktInfo.Inbound, errors.New("unsupported protocol for finding process")
}
}