From ee6736004d8662875e1a4a4a4f48faae7ea889b4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Nov 2005 22:40:19 +0000 Subject: [PATCH] never publish .local as browsing domain git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1024 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/avahi-core/server.c b/avahi-core/server.c index 16626d7..017605e 100644 --- a/avahi-core/server.c +++ b/avahi-core/server.c @@ -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 -- 2.39.5