From a884a306606f7ccd75792896ee1fb4be37d3ff1b Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 15 Apr 2021 23:16:35 +0200 Subject: [PATCH] Always update the revision counter when deciding on a connection --- firewall/master.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/firewall/master.go b/firewall/master.go index 34b22e98..37752871 100644 --- a/firewall/master.go +++ b/firewall/master.go @@ -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,