Fix incoming TCP connection direction

This fixes a bug where incoming TCP connections without a matching process would be falsely classified as an outgoing connection.
This commit is contained in:
Daniel
2020-07-22 14:07:19 +02:00
parent 1e62b9bb59
commit 3b063e9057
2 changed files with 2 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ func (table *tcpTable) lookup(pktInfo *packet.Info) (
}
}
return socket.UnidentifiedProcessID, false, ErrConnectionNotFound
return socket.UnidentifiedProcessID, pktInfo.Inbound, ErrConnectionNotFound
}
func (table *udpTable) lookup(pktInfo *packet.Info) (