mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Ignore DNS request connection from kernel
This commit is contained in:
parent
de61241847
commit
cc752f8e18
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ func getDNSRequestConnectionKey(packetInfo *packet.Info) (id string, ok bool) {
|
|||
// SaveDNSRequestConnection saves a dns request connection for later retrieval.
|
||||
func SaveDNSRequestConnection(conn *Connection, pkt packet.Packet) {
|
||||
// Check connection.
|
||||
if conn.PID == process.UndefinedProcessID {
|
||||
log.Tracer(pkt.Ctx()).Tracef("network: not saving dns request connection because the PID is undefined")
|
||||
if conn.PID == process.UndefinedProcessID || conn.PID == process.SystemProcessID {
|
||||
// When re-injecting packets on Windows, they are reported with kernel PID (4).
|
||||
log.Tracer(pkt.Ctx()).Tracef("network: not saving dns request connection because the PID is undefined/kernel")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue