Commit 0c8584ea authored by Simon Kelley's avatar Simon Kelley

Warn about non-local queries once only for UDP.

parent f00690f9
...@@ -1107,7 +1107,12 @@ void receive_query(struct listener *listen, time_t now) ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment