switch (q->type) {
case TYPE_ANY:
- if (!strcmp(name, mdns_hostname_local))
+ if (!strcmp(name, mdns_hostname_local)) {
service_reply(iface, NULL, announce_ttl);
+ dns_reply_a(iface, announce_ttl);
+ }
break;
case TYPE_PTR:
}
if (h->questions && !iface->multicast && port != 5353)
- // silently drop unicast questions that dont originate from port 5353
+ /* silently drop unicast questions that dont originate from port 5353 */
return;
while (h->questions-- > 0) {