mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +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;
|
static int warned = 0;
|
||||||
if (!warned)
|
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;
|
warned = 1;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -1990,7 +1991,8 @@ unsigned char *tcp_request(int confd, time_t now,
|
|||||||
}
|
}
|
||||||
if (!addr)
|
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;
|
return packet;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user