mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-06 15:51:41 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14e81b6976 | ||
|
|
6ce7f2d55a |
No files matched your search
+4
-2
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -343,7 +343,7 @@ int filter_servers(int seed, int flags, int *lowout, int *highout)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* If we want a server for a particular domain, and this one isn't, return nothing. */
|
/* If we want a server for a particular domain, and this one isn't, return nothing. */
|
||||||
if (nlow != nhigh && (flags & F_DOMAINSRV) && daemon->serverarray[nlow]->domain_len == 0)
|
if (nlow < daemon->serverarraysz && nlow != nhigh && (flags & F_DOMAINSRV) && daemon->serverarray[nlow]->domain_len == 0)
|
||||||
nlow = nhigh;
|
nlow = nhigh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user