Commit 67f73788 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Only log dns messages which have a query

parent 6efe2e2e
......@@ -61,7 +61,7 @@ class QueryListener(private val context: Context) : QueryListener {
if (writeQueriesToLog) {
context.log("Query from device: $questionMessage")
}
if (logQueriesToDb) {
if (logQueriesToDb && questionMessage.questions.size != 0) {
val query = DnsQuery(
type = questionMessage.question.type,
name = questionMessage.question.name.toString(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment