mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/mdns_server_instance_mismatch' into 'master'
mdns: fix mdns server instance mismatch Closes IDFCI-1011 See merge request espressif/esp-idf!16420
This commit is contained in:
commit
c86183d54d
@ -293,8 +293,14 @@ static mdns_srv_item_t *_mdns_get_service_item_instance(const char *instance, co
|
||||
{
|
||||
mdns_srv_item_t *s = _mdns_server->services;
|
||||
while (s) {
|
||||
if (_mdns_service_match_instance(s->service, instance, service, proto, hostname)) {
|
||||
return s;
|
||||
if (instance) {
|
||||
if (_mdns_service_match_instance(s->service, instance, service, proto, hostname)) {
|
||||
return s;
|
||||
}
|
||||
} else {
|
||||
if (_mdns_service_match(s->service, service, proto, hostname)) {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
s = s->next;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user