Commit 6e011d90 authored by Sebastiaan Lokhorst's avatar Sebastiaan Lokhorst

Switch Bonjour from IPv4 to IPv6 (for testing)

parent a7bc6dc5
Pipeline #3191 passed with stages
in 2 minutes and 59 seconds
......@@ -166,7 +166,7 @@ class Zeroconf:
fullname, port, txtRecord = self.resolved_contacts[hosttarget]
txt = pybonjour.TXTRecord.parse(txtRecord)
ip = socket.inet_ntoa(rdata)
ip = socket.inet_ntop(socket.AF_INET6, rdata)
name, bare_name, protocol, domain = self._parse_name(fullname)
......@@ -212,7 +212,7 @@ class Zeroconf:
pybonjour.DNSServiceQueryRecord(
interfaceIndex=interfaceIndex,
fullname=hosttarget,
rrtype=pybonjour.kDNSServiceType_A,
rrtype=pybonjour.kDNSServiceType_AAAA,
callBack=self.query_record_callback)
while not self.queried:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment