]> git.meshlink.io Git - catta/commitdiff
never publish .local as browsing domain
authorLennart Poettering <lennart@poettering.net>
Wed, 23 Nov 2005 22:40:19 +0000 (22:40 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 23 Nov 2005 22:40:19 +0000 (22:40 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1024 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/server.c

index 16626d754dfc407ab233c6eccb4a8275d2ad60a7..017605efec2428aed34a2eddfe0fe29030521383 100644 (file)
@@ -486,7 +486,6 @@ void avahi_server_generate_response(AvahiServer *s, AvahiInterface *i, AvahiDnsP
     avahi_record_list_flush(s->record_list);
 }
 
-
 static void reflect_response(AvahiServer *s, AvahiInterface *i, AvahiRecord *r, int flush_cache) {
     AvahiInterface *j;
     
@@ -1174,6 +1173,9 @@ static void register_browse_domain(AvahiServer *s) {
     if (!s->config.publish_domain)
         return;
 
+    if (avahi_domain_equal(s->domain_name, "local"))
+        return;
+
     if (s->browse_domain_entry_group)
         assert(avahi_s_entry_group_is_empty(s->browse_domain_entry_group));
     else