From: Niklas Hofmann Date: Thu, 7 Aug 2014 16:37:08 +0000 (+0200) Subject: workaround: disable PTR records for local interfaces to make it compatible with concu... X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=ff86d3d651d112d915e4ecb5beee19aa5bfaabcd;p=catta workaround: disable PTR records for local interfaces to make it compatible with concurrently running mdns instances --- 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;