diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-12 20:12:56 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-12 20:12:56 +0000 |
commit | 0c8584eabcad7b09157a287d2f38f7432ebbb1d1 (patch) | |
tree | a97a7efdc71c9667408f55623d61a856323425f5 | |
parent | f00690f93eaa6035d2b7a6293e96c56c619247b1 (diff) | |
download | dnsmasq-0c8584eabcad7b09157a287d2f38f7432ebbb1d1.tar.gz |
Warn about non-local queries once only for UDP.
-rw-r--r-- | src/forward.c | 7 |
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; } } |