]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stub: don't ever respond to datagrams coming in on non-localhost addreses, on the...
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Nov 2020 14:51:12 +0000 (15:51 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Dec 2020 00:35:40 +0000 (09:35 +0900)
src/resolve/resolved-dns-stub.c

index 086d3d9d186a6252a4664bf9c587b21047a6e02f..6a3dc9901ae8326e93147a373be567739b865d9c 100644 (file)
@@ -379,8 +379,7 @@ static void dns_stub_process_query(Manager *m, DnsStubListenerExtra *l, DnsStrea
         if (!l && /* l == NULL if this is the main stub */
             (in_addr_is_localhost(p->family, &p->sender) <= 0 ||
              in_addr_is_localhost(p->family, &p->destination) <= 0)) {
-                log_error("Got packet on unexpected IP range, refusing.");
-                dns_stub_send_failure(m, l, s, p, DNS_RCODE_SERVFAIL, false);
+                log_warning("Got packet on unexpected (i.e. non-localhost) IP range, ignoring.");
                 return;
         }