From 0c8584eabcad7b09157a287d2f38f7432ebbb1d1 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 12 Mar 2014 20:12:56 +0000 Subject: [PATCH] Warn about non-local queries once only for UDP. --- src/forward.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/forward.c b/src/forward.c index b396aa4..c59777e 100644 --- a/src/forward.c +++ b/src/forward.c @@ -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; } }