chiark / gitweb /
resolved: fix check for mdns names
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Jul 2014 23:14:19 +0000 (01:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Jul 2014 23:41:52 +0000 (01:41 +0200)
src/resolve/resolved-dns-scope.c

index 7b5580f..1fa8401 100644 (file)
@@ -194,7 +194,7 @@ DnsScopeMatch dns_scope_test(DnsScope *s, const char *domain) {
                 if (dns_name_endswith(domain, "254.169.in-addr.arpa") ||
                     dns_name_endswith(domain, "0.8.e.f.ip6.arpa"))
                         return DNS_SCOPE_YES;
-                else if (dns_name_endswith(domain, "local") ||
+                else if (dns_name_endswith(domain, "local") &&
                          !dns_name_single_label(domain))
                         return DNS_SCOPE_MAYBE;