Commit 7d442187 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Show all responses in the query log

parent a1850047
......@@ -150,11 +150,9 @@ class QueryLogDetailFragment : Fragment() {
query.responseSource == QueryListener.Source.LOCALRESOLVER -> getString(R.string.windows_querylogging_usedserver_dnsrules)
else -> query.askedServer?.replace("tls::", "")?.replace("https::", "") ?: "-"
}
responses.text = query.getParsedResponses().filter {
it.type == query.type
}.joinToString(separator = "\n") {
responses.text = query.getParsedResponses().joinToString(separator = "\n") {
val payload = it.payload
"$payload (TTL: ${it.ttl})"
"$payload (${it.type.name}, TTL: ${it.ttl})"
}.let {
if(it.isBlank()) "-"
else it
......
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