mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
[thci] discard IPv4 link local address in mDNS browsing (#7277)
When looking for the Border Agent's link local address in the mDNS response do not consider a possible IPv4 address record.
This commit is contained in:
@@ -666,7 +666,7 @@ EOF"
|
||||
for record in cache[ba.server_name]:
|
||||
if isinstance(record, DNSAddress):
|
||||
addr = ipaddress.ip_address(record.address)
|
||||
if addr.is_link_local:
|
||||
if isinstance(addr, ipaddress.IPv6Address) and addr.is_link_local:
|
||||
ba.link_local_addr = str(addr)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user