Make default pid to be -1 and remove unsafe code
This commit is contained in:
@@ -126,6 +126,7 @@ func GetProcessByRequestOrigin(ar *api.Request) (*Process, error) {
|
||||
Protocol: packet.TCP,
|
||||
Src: remoteIP, // source as in the process we are looking for
|
||||
SrcPort: remotePort, // source as in the process we are looking for
|
||||
PID: -1,
|
||||
}
|
||||
|
||||
pid, _, err := GetPidOfConnection(ar.Context(), pkt)
|
||||
|
||||
Reference in New Issue
Block a user