Always update the revision counter when deciding on a connection

This commit is contained in:
Daniel 2021-04-15 23:16:35 +02:00
parent 50d10ffdca
commit a884a30660

View file

@ -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,