Improve and fix dns requests saving

This commit is contained in:
Daniel
2021-10-11 15:03:24 +02:00
parent be0a94ba98
commit 1a222ca6da
2 changed files with 21 additions and 12 deletions

View File

@@ -151,7 +151,7 @@ func handleRequest(ctx context.Context, w dns.ResponseWriter, request *dns.Msg)
// that will happen later anyway.
case network.VerdictUndecided, network.VerdictAccept:
// Save the request as open, as we don't know if there will be a connection or not.
network.SaveOpenDNSRequest(conn, uint16(q.QType))
network.SaveOpenDNSRequest(q, rrCache, conn)
firewall.UpdateIPsAndCNAMEs(q, rrCache, conn)
default: