[LEDE-DEV] [PATCH 2/3] Fix PTR questions handling
Cristian Morales Vega
cristian at samknows.com
Wed Apr 26 01:45:15 PDT 2017
Signed-off-by: Cristian Morales Vega <cristian at samknows.com>
---
dns.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/dns.c b/dns.c
index 61ea8e3..168cc13 100644
--- a/dns.c
+++ b/dns.c
@@ -378,15 +378,7 @@ parse_question(struct interface *iface, struct sockaddr *from, char *name, struc
dns_reply_a(iface, to, announce_ttl);
service_announce_services(iface, to, announce_ttl);
} else {
- /* First dot separates instance name from the rest */
- char *dot = strchr(name, '.');
- /* Length of queried instance */
- size_t len = dot ? dot - name : 0;
-
- /* Make sure it's query for the instance name we use */
- if (len && len == strlen(mdns_hostname) &&
- !strncmp(name, mdns_hostname, len))
- service_reply(iface, to, dot + 1, announce_ttl);
+ service_reply(iface, to, name, announce_ttl);
}
break;
--
2.9.3
More information about the Lede-dev
mailing list