mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-15 10:39:35 +00:00
Warn about non-local queries once only for UDP.
This commit is contained in:
1 parent
f00690f93e
commit
0c8584eabc
1 file changed
+6
-1
+6
-1
@@ -1107,7 +1107,12 @@ void receive_query(struct listener *listen, time_t now)
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user