mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Do not get process+profile for info only packets
In order to stop creating profiles for processes within docker.
This commit is contained in:
parent
af41e07648
commit
d58abe563f
1 changed files with 6 additions and 0 deletions
|
@ -488,6 +488,12 @@ func (conn *Connection) GatherConnectionInfo(pkt packet.Packet) (err error) {
|
|||
// Errors are informational and are logged to the context.
|
||||
}
|
||||
|
||||
// Only get process and profile with first real packet.
|
||||
// TODO: Remove when we got full VM/Docker support.
|
||||
if pkt.InfoOnly() {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Get Process and Profile.
|
||||
if conn.process == nil {
|
||||
conn.process, err = process.GetProcessWithProfile(pkt.Ctx(), conn.PID)
|
||||
|
|
Loading…
Add table
Reference in a new issue