-
Notifications
You must be signed in to change notification settings - Fork 174
[mdns]: v1.10: Fix to keep TXT/SRV in answers to queries #959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@tanyanquan PTAL, too |
components/mdns/mdns_send.c
Outdated
| send_flush, false)) { | ||
| return false; | ||
| } | ||
| } else if (is_any_instance_question) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can put this block first, followed by
else if (question->type == MDNS_TYPE_PTR || question->type == MDNS_TYPE_ANY)
for clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using the original expression (question->type == MDNS_TYPE_ANY) && is_instance_question , just to follow consistency with other if conditions, and adding a comment in this if branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, have swapped these branches and removed the unnecessary is_any_instance_question.
thanks!
zwx1995esp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, 👍
components/mdns/mdns_send.c
Outdated
| send_flush, false)) { | ||
| return false; | ||
| } | ||
| } else if (is_any_instance_question) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using the original expression (question->type == MDNS_TYPE_ANY) && is_instance_question , just to follow consistency with other if conditions, and adding a comment in this if branch?
unlike discoveries, where they need to stay in additional section Quick fix of regression b7b8c5d Also adds a test to check the answer section for queries
7424337 to
3441d8c
Compare
unlike discoveries, where they need to stay in additional section
Quick fix of regression b7b8c5d