Merge branch 'develop' into feature/new-kext

This commit is contained in:
Vladimir Stoilov
2024-04-29 17:08:04 +03:00
12 changed files with 144 additions and 54 deletions

View File

@@ -111,12 +111,17 @@ func resetAllConnectionVerdicts() {
func resetConnectionVerdict(ctx context.Context, conn *network.Connection) (verdictChanged bool) {
tracer := log.Tracer(ctx)
// Remove any active prompt as we settings are being re-evaluated.
// Remove any active prompt as the settings are being re-evaluated.
conn.RemovePrompt()
conn.Lock()
defer conn.Unlock()
// Do not re-evaluate connection that have already ended.
if conn.Ended > 0 {
return false
}
// Update feature flags.
if err := conn.UpdateFeatures(); err != nil && !errors.Is(err, access.ErrNotLoggedIn) {
tracer.Warningf("filter: failed to update connection feature flags: %s", err)