Switch to FilterConnection as main decision function

This commit is contained in:
Daniel
2022-10-13 11:23:08 +02:00
parent 028986ed74
commit 75f4d43347
3 changed files with 24 additions and 15 deletions

View File

@@ -58,9 +58,9 @@ var defaultDeciders = []deciderFn{
checkAutoPermitRelated,
}
// DecideOnConnection makes a decision about a connection.
// decideOnConnection makes a decision about a connection.
// When called, the connection and profile is already locked.
func DecideOnConnection(ctx context.Context, conn *network.Connection, pkt packet.Packet) {
func decideOnConnection(ctx context.Context, conn *network.Connection, pkt packet.Packet) {
// Check if we have a process and profile.
layeredProfile := conn.Process().Profile()
if layeredProfile == nil {