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

Warn about non-local queries once only for UDP.

parent f00690f9
...@@ -1106,8 +1106,13 @@ void receive_query(struct listener *listen, time_t now) ...@@ -1106,8 +1106,13 @@ void receive_query(struct listener *listen, time_t now)
} }
} }
if (!addr) if (!addr)
{
static int warned = 0;
if (!warned)
{ {
my_syslog(LOG_WARNING, _("Ignoring query from non-local network")); 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