summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-03-12 20:12:56 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2014-03-12 20:12:56 +0000
commit0c8584eabcad7b09157a287d2f38f7432ebbb1d1 (patch)
treea97a7efdc71c9667408f55623d61a856323425f5
parentf00690f93eaa6035d2b7a6293e96c56c619247b1 (diff)
downloaddnsmasq-0c8584eabcad7b09157a287d2f38f7432ebbb1d1.tar.gz
Warn about non-local queries once only for UDP.
-rw-r--r--src/forward.c7
1 files changed, 6 insertions, 1 deletions
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;
}
}