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

@@ -222,7 +222,7 @@ func handleRequest(ctx context.Context, w dns.ResponseWriter, request *dns.Msg)
}()
// Check request with the privacy filter before resolving.
firewall.DecideOnConnection(ctx, conn, nil)
firewall.FilterConnection(ctx, conn, nil, true, false)
// Check if there is a responder from the firewall.
// In special cases, the firewall might want to respond the query itself.