Skip to content

Comments

Some code fixes to make sure IPv6 addresses are recorded and returned…#179

Closed
miphip wants to merge 1 commit intopython-zeroconf:masterfrom
miphip:master
Closed

Some code fixes to make sure IPv6 addresses are recorded and returned…#179
miphip wants to merge 1 commit intopython-zeroconf:masterfrom
miphip:master

Conversation

@miphip
Copy link

@miphip miphip commented Jun 27, 2019

… when browsing.

With these changes I could successfully find services with either ip_version=IpVersion.All, V4Only or V6Only. The returned service info would contain all the address records found in the service reponses.

(Great library, by the way!)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 91.146% when pulling 3429074 on miphip:master into 3d5787b on jstasiak:master.

@jstasiak
Copy link
Collaborator

I'm wondering, is it possible/easy to write a test for this or add the relevant code to existing test(s)?

@dtantsur
Copy link
Collaborator

Will returning AAAA addresses break existing code? I'd expect a lot of people doing inet_ntoa on a ServiceInfo.address.

@dtantsur
Copy link
Collaborator

@jstasiak @miphip I've posted an updated PR since this has been inactive for a while: #191

jstasiak pushed a commit that referenced this pull request Oct 17, 2019
This PR incorporates changes from the earlier PR #179 (thanks to Mikael Pahmp), adding tests and a few more fixes to make AAAA records work in practice.

Note that changing addresses to container IPv6 addresses may be considered a breaking change, for example, for consumers that unconditionally apply inet_aton to them. I'm introducing a new function to be able to retries only addresses from one family.
@dtantsur
Copy link
Collaborator

I believe all changes from this PR have been included in #191.

@dtantsur dtantsur closed this Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants