mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix regression in 9e67099ce7
Logging queries lost the RRtype. Revert to e.g. query[A] example.com
This commit is contained in:
@@ -2360,6 +2360,8 @@ void log_query(unsigned int flags, char *name, union all_addr *addr, char *arg,
|
|||||||
source = "reply";
|
source = "reply";
|
||||||
else if (flags & F_AUTH)
|
else if (flags & F_AUTH)
|
||||||
source = "auth";
|
source = "auth";
|
||||||
|
else if (flags & F_QUERY)
|
||||||
|
source = "query";
|
||||||
else if (flags & F_SECSTAT)
|
else if (flags & F_SECSTAT)
|
||||||
{
|
{
|
||||||
if (addr && addr->log.ede != EDE_UNSET && option_bool(OPT_EXTRALOG))
|
if (addr && addr->log.ede != EDE_UNSET && option_bool(OPT_EXTRALOG))
|
||||||
@@ -2400,8 +2402,8 @@ void log_query(unsigned int flags, char *name, union all_addr *addr, char *arg,
|
|||||||
source = "non-query opcode";
|
source = "non-query opcode";
|
||||||
name = opcodestring;
|
name = opcodestring;
|
||||||
}
|
}
|
||||||
else if (!(flags & F_AUTH))
|
else if (type > 0)
|
||||||
source = "query";
|
source = querystr(source, type);
|
||||||
|
|
||||||
verb = "from";
|
verb = "from";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user