mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Always update the revision counter when deciding on a connection
This commit is contained in:
parent
50d10ffdca
commit
a884a30660
1 changed files with 7 additions and 0 deletions
|
@ -82,6 +82,13 @@ func DecideOnConnection(ctx context.Context, conn *network.Connection, pkt packe
|
|||
if conn.Entity != nil {
|
||||
conn.Entity.ResetLists()
|
||||
}
|
||||
} else {
|
||||
// Check if the revision counter of the connection needs updating.
|
||||
revCnt := layeredProfile.RevisionCnt()
|
||||
if conn.ProfileRevisionCounter != revCnt {
|
||||
conn.ProfileRevisionCounter = revCnt
|
||||
conn.SaveWhenFinished()
|
||||
}
|
||||
}
|
||||
|
||||
// DNS request from the system resolver require a special decision process,
|
||||
|
|
Loading…
Add table
Reference in a new issue