Warn about non-local queries once only for UDP.

This commit is contained in:
Simon Kelley committed 2014-03-12 20:12:56 +00:00
1 parent f00690f93e
commit 0c8584eabc
1 file changed
+6 -1
+6 -1
View File
@@ -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;
}
}