mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Warn about non-local queries once only for UDP.
This commit is contained in:
@@ -1107,7 +1107,12 @@ void receive_query(struct listener *listen, time_t now)
|
|||||||
}
|
}
|
||||||
if (!addr)
|
if (!addr)
|
||||||
{
|
{
|
||||||
my_syslog(LOG_WARNING, _("Ignoring query from non-local network"));
|
static int warned = 0;
|
||||||
|
if (!warned)
|
||||||
|
{
|
||||||
|
my_syslog(LOG_WARNING, _("Ignoring query from non-local network"));
|
||||||
|
warned = 1;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user