mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-12 18:35:49 +00:00
mDNS: Fix example test in CI using multiple retries
This commit is contained in:
@@ -78,7 +78,7 @@ def mdns_server(esp_host):
|
||||
print('Received query: {} '.format(dns.__repr__()))
|
||||
sock.sendto(get_dns_answer_to_mdns_lwip(TESTER_NAME_LWIP, dns.id), addr)
|
||||
if len(dns.an) > 0 and dns.an[0].type == dpkt.dns.DNS_A:
|
||||
if dns.an[0].name == esp_host + u'.local':
|
||||
if dns.an[0].name.startswith(esp_host + u'.local'):
|
||||
print('Received answer to esp32-mdns query: {}'.format(dns.__repr__()))
|
||||
esp_answered.set()
|
||||
except socket.timeout:
|
||||
|
||||
Reference in New Issue
Block a user