]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Warn about non-local queries once only for UDP.
authorSimon Kelley <simon@thekelleys.org.uk>
Wed, 12 Mar 2014 20:12:56 +0000 (20:12 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Wed, 12 Mar 2014 20:12:56 +0000 (20:12 +0000)
src/forward.c

index b396aa4b28210dc67830e4ff609f628a3f32b3b9..c59777ea5d39f5c0da031d7928b7f9bdcff4bc1b 100644 (file)
@@ -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;
        }
     }