mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Log source of ignored query when local-service is used.
Thanks to Dominik Derigs for the initial patch.
This commit is contained in:
@@ -1460,7 +1460,8 @@ void receive_query(struct listener *listen, time_t now)
|
||||
static int warned = 0;
|
||||
if (!warned)
|
||||
{
|
||||
my_syslog(LOG_WARNING, _("Ignoring query from non-local network"));
|
||||
prettyprint_addr(&source_addr, daemon->addrbuff);
|
||||
my_syslog(LOG_WARNING, _("ignoring query from non-local network %s (logged only once)"), daemon->addrbuff);
|
||||
warned = 1;
|
||||
}
|
||||
return;
|
||||
@@ -1990,7 +1991,8 @@ unsigned char *tcp_request(int confd, time_t now,
|
||||
}
|
||||
if (!addr)
|
||||
{
|
||||
my_syslog(LOG_WARNING, _("Ignoring query from non-local network"));
|
||||
prettyprint_addr(&peer_addr, daemon->addrbuff);
|
||||
my_syslog(LOG_WARNING, _("ignoring query from non-local network %s"), daemon->addrbuff);
|
||||
return packet;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user