From ff86d3d651d112d915e4ecb5beee19aa5bfaabcd Mon Sep 17 00:00:00 2001 From: Niklas Hofmann Date: Thu, 7 Aug 2014 18:37:08 +0200 Subject: [PATCH] workaround: disable PTR records for local interfaces to make it compatible with concurrently running mdns instances --- avahi-core/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-core/iface.c b/avahi-core/iface.c index 39a860a..f3b09a0 100644 --- a/avahi-core/iface.c +++ b/avahi-core/iface.c @@ -73,7 +73,7 @@ void avahi_interface_address_update_rrs(AvahiInterfaceAddress *a, int remove_rrs avahi_address_snprint(t, sizeof(t), &a->address); avahi_log_info("Registering new address record for %s on %s.%s.", t, a->interface->hardware->name, p == AVAHI_PROTO_UNSPEC ? "*" : avahi_proto_to_string(p)); - if (avahi_server_add_address(m->server, a->entry_group, a->interface->hardware->index, p, 0, NULL, &a->address) < 0) { + if (avahi_server_add_address(m->server, a->entry_group, a->interface->hardware->index, p, AVAHI_PUBLISH_NO_REVERSE, NULL, &a->address) < 0) { avahi_log_warn(__FILE__": avahi_server_add_address() failed: %s", avahi_strerror(m->server->error)); avahi_s_entry_group_free(a->entry_group); a->entry_group = NULL; -- 2.39.5