Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamped verdict handling #1453

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Revamped verdict handling #1453

merged 2 commits into from
Mar 20, 2024

Conversation

ppacher
Copy link
Contributor

@ppacher ppacher commented Mar 5, 2024

No description provided.

@@ -722,22 +714,15 @@ func (conn *Connection) SetVerdict(newVerdict Verdict, reason, reasonOptionKey s
return true // TODO: remove
}

// SetVerdictDirectly sets the firewall verdict.
// SetVerdictDirectly sets the verdict.
func (conn *Connection) SetVerdictDirectly(newVerdict Verdict) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can rename this to SetVerdict, because we don't need a distinction anymore.

Comment on lines +758 to +759
// this is already handled when the connection tunnel has been
// established.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this means, maybe it'll become clear later in the review.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ConnectionEstablished field is set when the tunnel actually got established

@ppacher ppacher merged commit b30fd00 into develop Mar 20, 2024
6 checks passed
@ppacher ppacher deleted the revamp/verdicts branch March 20, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants