resolve: shorten code a bit

This commit is contained in:
Yu Watanabe
2022-07-09 05:20:09 +09:00
parent 87b91644db
commit d3887b2b48
+2 -2
View File
@@ -207,10 +207,10 @@ static bool mdns_should_reply_using_unicast(DnsPacket *p) {
}
/* All the questions in the query had a QU bit set, RFC 6762, section 5.4 */
DNS_QUESTION_FOREACH_ITEM(item, p->question) {
DNS_QUESTION_FOREACH_ITEM(item, p->question)
if (!FLAGS_SET(item->flags, DNS_QUESTION_WANTS_UNICAST_REPLY))
return false;
}
return true;
}