mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Don't exclude stale-cache answers from "local answered" metric.
This commit is contained in:
@@ -1820,7 +1820,9 @@ void receive_query(struct listener *listen, time_t now)
|
|||||||
#endif
|
#endif
|
||||||
send_from(listen->fd, option_bool(OPT_NOWILD) || option_bool(OPT_CLEVERBIND),
|
send_from(listen->fd, option_bool(OPT_NOWILD) || option_bool(OPT_CLEVERBIND),
|
||||||
(char *)header, m, &source_addr, &dst_addr, if_index);
|
(char *)header, m, &source_addr, &dst_addr, if_index);
|
||||||
daemon->metrics[stale ? METRIC_DNS_STALE_ANSWERED : METRIC_DNS_LOCAL_ANSWERED]++;
|
daemon->metrics[METRIC_DNS_LOCAL_ANSWERED]++;
|
||||||
|
if (stale)
|
||||||
|
daemon->metrics[METRIC_DNS_STALE_ANSWERED]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m == 0 || stale)
|
if (m == 0 || stale)
|
||||||
|
|||||||
Reference in New Issue
Block a user